After we switch this driver to use thread IRQ, we introduce some kthread macros, when we build this driver, we will get errors like that: ds7846.c: In function 'ads7846_stop': ads7846.c:205: error: 'TASK_NORMAL' undeclared (first use in ...) ads7846.c:205: error: (Each undeclared identifier is ...) ads7846.c:205: error: for each function it appears in.) Here add a header file to fix this error. Signed-off-by: Jason Wang <jason77.wang@xxxxxxxxx> --- drivers/input/touchscreen/ads7846.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index d1fc8ef..5ddaeea 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -21,6 +21,7 @@ #include <linux/hwmon.h> #include <linux/init.h> #include <linux/err.h> +#include <linux/sched.h> #include <linux/delay.h> #include <linux/input.h> #include <linux/interrupt.h> -- 1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html