]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i2c: minor cleanups to twl4030-pwrbutton.c
authorFelipe Balbi <felipe.balbi@nokia.com>
Tue, 30 Sep 2008 18:43:01 +0000 (21:43 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 1 Oct 2008 10:37:38 +0000 (13:37 +0300)
Trivial brainless fixes, a few unused headers removed,
changed one printk to pr_err() and removed one comment.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030-pwrbutton.c

index d86d489dee856294465ed1aefc8b3ce147c20e2e..9a361b3b6d1fb1afc4bdc01c303a50aa5987357d 100644 (file)
@@ -26,9 +26,6 @@
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/input.h>
-#include <linux/timer.h>
-#include <linux/jiffies.h>
-#include <linux/kthread.h>
 #include <linux/interrupt.h>
 #include <linux/i2c/twl4030.h>
 
 
 static struct input_dev *powerbutton_dev;
 
-/*
- * Note : the following function runs in kernel thread context
- * with IRQs enabled
- */
-
 static irqreturn_t powerbutton_irq(int irq, void *dev_id)
 {
        int err;
@@ -63,7 +55,7 @@ static irqreturn_t powerbutton_irq(int irq, void *dev_id)
                input_report_key(powerbutton_dev, KEY_POWER,
                                 value & PWR_PWRON_IRQ);
        } else {
-               printk(KERN_WARNING "I2C error %d while reading TWL4030"
+               pr_err("twl4030: i2c error %d while reading TWL4030"
                        " PM_MASTER STS_HW_CONDITIONS register\n", err);
        }