Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: da903x: fix the building failure of incomplete type of 'work'

The leds-da903x LED driver was missing the proper #include of
linux/workqueue.h, but happened to compile on ARM due to implied
includes through other header files.

We do need the explict include on other architectures (reported at least
for x86-64).

Reported-tested-and-acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Eric Miao and committed by
Linus Torvalds
b9b54aa2 f8d56f17

+1
+1
drivers/leds/leds-da903x.c
··· 17 17 #include <linux/init.h> 18 18 #include <linux/platform_device.h> 19 19 #include <linux/leds.h> 20 + #include <linux/workqueue.h> 20 21 #include <linux/mfd/da903x.h> 21 22 22 23 #define DA9030_LED1_CONTROL 0x20