arm: add slab.h to plat-samsung files for GFP_KERNEL
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 22:16:56 +0000 (18:16 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:30:48 +0000 (19:30 -0400)
To fix messages like this:

  CC      arch/arm/plat-samsung/platformdata.o
arch/arm/plat-samsung/platformdata.c: In function 's3c_set_platdata':
arch/arm/plat-samsung/platformdata.c:29: error: 'GFP_KERNEL' undeclared (first use in this function)
arch/arm/plat-samsung/platformdata.c:29: error: (Each undeclared identifier is reported only once
arch/arm/plat-samsung/platformdata.c:29: error: for each function it appears in.)
make[3]: *** [arch/arm/plat-samsung/platformdata.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/arm/plat-samsung/dev-backlight.c
arch/arm/plat-samsung/platformdata.c

index 3cedd4c407af193d6e563893c9e679045b7ca25f..a976c023b286b4a1b991cfa63c2dc93e9912151d 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <linux/gpio.h>
 #include <linux/platform_device.h>
+#include <linux/slab.h>
 #include <linux/io.h>
 #include <linux/pwm_backlight.h>
 
index 7cf2e1e3b20f87a30805ac49d46c3f50e93a2157..9037ca49c328d88abbb85301707abaca0d6d451a 100644 (file)
@@ -10,6 +10,7 @@
 */
 
 #include <linux/kernel.h>
+#include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/platform_device.h>