summaryrefslogtreecommitdiff
path: root/drivers/regulator/twl-regulator.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2012-08-16 09:16:05 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-28 22:00:28 +0400
commit8f52a5800ab8f47a9bc430e21d5af84b6c290423 (patch)
treea1aab46ea376b02f9a54b8096dee8e4fc410366c /drivers/regulator/twl-regulator.c
parentffee19091a4e0c5dae0e83a6e0927c0f5c554537 (diff)
downloadlinux-8f52a5800ab8f47a9bc430e21d5af84b6c290423.tar.xz
regulator: using kfree() requires including slab.h
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>
Diffstat (limited to 'drivers/regulator/twl-regulator.c')
-rw-r--r--drivers/regulator/twl-regulator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c
index a8365229ea6d..564acae3eae8 100644
--- a/drivers/regulator/twl-regulator.c
+++ b/drivers/regulator/twl-regulator.c
@@ -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>