From: Felipe Balbi Date: Tue, 30 Sep 2008 18:43:01 +0000 (+0300) Subject: i2c: minor cleanups to twl4030-pwrbutton.c X-Git-Tag: v2.6.27-omap1~109 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9e05fadf0666298b21880b8cc17588092afb63e1;p=linux-2.6-omap-h63xx.git i2c: minor cleanups to twl4030-pwrbutton.c Trivial brainless fixes, a few unused headers removed, changed one printk to pr_err() and removed one comment. Signed-off-by: Felipe Balbi Signed-off-by: Tony Lindgren --- diff --git a/drivers/i2c/chips/twl4030-pwrbutton.c b/drivers/i2c/chips/twl4030-pwrbutton.c index d86d489dee8..9a361b3b6d1 100644 --- a/drivers/i2c/chips/twl4030-pwrbutton.c +++ b/drivers/i2c/chips/twl4030-pwrbutton.c @@ -26,9 +26,6 @@ #include #include #include -#include -#include -#include #include #include @@ -47,11 +44,6 @@ 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); }