#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;
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);
}