diff options
author | David Miller <davem@davemloft.net> | 2012-02-09 16:43:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-09 17:57:46 -0500 |
commit | 532691635475487b8c1d6fc618bd123084904897 (patch) | |
tree | 040a5580a931db08e5f82fdd0867a1f013bbb305 /drivers/regulator | |
parent | d65b4e98d7ea3038b767b70fe8be959b2913f16d (diff) |
regulator: Fix mc13xxx regulator modular build (again)
Since mc13xxx-regulator-core.c and the actual drivers can get built
into seperate modules, you have to export the DT support symbols
"mc13xxx_get_num_regulators_dt" and "mc13xxx_parse_regulators_dt"
otherwise the allmodconfig build fails on sparc64.
[Updated the subject; the same thing was previously reported and fixed
in -next but for some reason nobody noticed for some considerable time
after the issue was introduced -- broonie]
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/mc13xxx-regulator-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/mc13xxx-regulator-core.c b/drivers/regulator/mc13xxx-regulator-core.c index 80ecafef1bc3..62dcd0a432bb 100644 --- a/drivers/regulator/mc13xxx-regulator-core.c +++ b/drivers/regulator/mc13xxx-regulator-core.c | |||
@@ -254,6 +254,7 @@ int __devinit mc13xxx_get_num_regulators_dt(struct platform_device *pdev) | |||
254 | 254 | ||
255 | return num; | 255 | return num; |
256 | } | 256 | } |
257 | EXPORT_SYMBOL_GPL(mc13xxx_get_num_regulators_dt); | ||
257 | 258 | ||
258 | struct mc13xxx_regulator_init_data * __devinit mc13xxx_parse_regulators_dt( | 259 | struct mc13xxx_regulator_init_data * __devinit mc13xxx_parse_regulators_dt( |
259 | struct platform_device *pdev, struct mc13xxx_regulator *regulators, | 260 | struct platform_device *pdev, struct mc13xxx_regulator *regulators, |
@@ -291,6 +292,7 @@ struct mc13xxx_regulator_init_data * __devinit mc13xxx_parse_regulators_dt( | |||
291 | 292 | ||
292 | return data; | 293 | return data; |
293 | } | 294 | } |
295 | EXPORT_SYMBOL_GPL(mc13xxx_parse_regulators_dt); | ||
294 | #endif | 296 | #endif |
295 | 297 | ||
296 | MODULE_LICENSE("GPL v2"); | 298 | MODULE_LICENSE("GPL v2"); |