diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2012-03-09 13:17:28 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-15 13:56:11 -0700 |
commit | 43383d6089fb3bd7e2e2cd36e18b0d855c651a24 (patch) | |
tree | 6542e5be6ef618f3da3f7fbf0e6ed41c4d489b77 /drivers/base | |
parent | 263ab716bc6f1a43d3e0d3f9d8a918e3969c71ba (diff) |
regmap: Fix future missing prototype of devres_alloc() and friends
[Fix for breakage which will be introduced during the merge window via
header reworks in another tree, the regmap tree does include device.h
but Paul's tree breaks that. Reworded subject to reflect -- broonie]
regmap.s uses devres_alloc() and others that are prototyped in device.h.
Include that to solve the following:
drivers/base/regmap/regmap.c: In function 'devm_regmap_init':
drivers/base/regmap/regmap.c:331:2: error: implicit declaration of function 'devres_alloc' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c:338:3: error: implicit declaration of function 'devres_add' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c:340:3: error: implicit declaration of function 'devres_free' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c: In function '_regmap_raw_write':
drivers/base/regmap/regmap.c:421:5: error: implicit declaration of function 'dev_err' [-Werror=implicit-function-declaration]
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit f5d6eba74b8aac7d4bf646c5445807aa6a247e6c)
Change-Id: I38c390fb5085bf3e815aa5c4048d4f89d8698563
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96495
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 1a5756c28647..9a3cf9e34f8c 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -10,6 +10,7 @@ * published by the Free Software Foundation. */ +#include <linux/device.h> #include <linux/slab.h> #include <linux/export.h> #include <linux/mutex.h> |