regulator: using kfree() requires including slab.h
commit8f52a5800ab8f47a9bc430e21d5af84b6c290423
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Aug 2012 05:16:05 +0000 (16 15:16 +1000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Aug 2012 18:00:28 +0000 (28 11:00 -0700)
treea1aab46ea376b02f9a54b8096dee8e4fc410366c
parentffee19091a4e0c5dae0e83a6e0927c0f5c554537
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>
drivers/regulator/twl-regulator.c