From 2d82121aaecf73b66285cc1c0bf241c87afe7293 Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Mon, 27 Oct 2008 17:48:50 +0800 Subject: [PATCH] leds: da903x: fix the building failure of incomplete type of 'work' With CONFIG_LEDS_DA903X=m, kernel 2.6.28-rc2-git1 fails to build on x86-64 with the following error: CC [M] drivers/leds/leds-da903x.o drivers/leds/leds-da903x.c:35: error: field "work" has incomplete type drivers/leds/leds-da903x.c: In function "da903x_led_work": drivers/leds/leds-da903x.c:47: warning: type defaults to "int" in declaration of "__mptr" drivers/leds/leds-da903x.c:47: warning: initialization from incompatible pointer type drivers/leds/leds-da903x.c: In function "da903x_led_set": drivers/leds/leds-da903x.c:89: error: implicit declaration of function "schedule_work" drivers/leds/leds-da903x.c: In function "da903x_led_probe": drivers/leds/leds-da903x.c:125: error: implicit declaration of function "INIT_WORK" Include the explicitly here to fix the above issue. Reported-by: Jean Delvare Signed-off-by: Eric Miao --- drivers/leds/leds-da903x.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/leds/leds-da903x.c b/drivers/leds/leds-da903x.c index f1fddb1..2768c69 100644 --- a/drivers/leds/leds-da903x.c +++ b/drivers/leds/leds-da903x.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #define DA9030_LED1_CONTROL 0x20 -- 1.6.0.2