]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
regulator: using kfree() requires including slab.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Aug 2012 05:16:05 +0000 (15:16 +1000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Aug 2012 18:00:28 +0000 (11:00 -0700)
Fixes this build error:

drivers/regulator/twl-regulator.c: In function 'twlreg_probe':
drivers/regulator/twl-regulator.c:1229:3: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]

Also added string.h for kmemdup().

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/twl-regulator.c

index a8365229ea6d70a22cd8e4fe56647748823b0e7d..564acae3eae8eabd3de00f15d140ba53177396a7 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <linux/module.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>