diff mbox

[on,mfd-regulator-power-v3.17] charger: max14577: Fix build breakage when compiled as module

Message ID 1411560006-16471-1-git-send-email-k.kozlowski@samsung.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Krzysztof Kozlowski Sept. 24, 2014, noon UTC
The charger's module device table used the same name as regulator driver
causing a build break when charger was compiled as a module:

drivers/power/max14577_charger.c:598:1: error: ‘__mod_platform__max14577_regulator_id_device_table’ aliased to undefined symbol ‘max14577_regulator_id’
make[2]: *** [drivers/power/max14577_charger.o] Error 1

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
---
 drivers/power/max14577_charger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lee Jones Sept. 24, 2014, 2:35 p.m. UTC | #1
On Wed, 24 Sep 2014, Krzysztof Kozlowski wrote:

> The charger's module device table used the same name as regulator driver
> causing a build break when charger was compiled as a module:
> 
> drivers/power/max14577_charger.c:598:1: error: ‘__mod_platform__max14577_regulator_id_device_table’ aliased to undefined symbol ‘max14577_regulator_id’
> make[2]: *** [drivers/power/max14577_charger.o] Error 1
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> ---
>  drivers/power/max14577_charger.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I have fixed this up into the original set and re-sent the
pull-request.
Krzysztof Kozlowski Sept. 24, 2014, 2:38 p.m. UTC | #2
On ?ro, 2014-09-24 at 15:35 +0100, Lee Jones wrote:
> On Wed, 24 Sep 2014, Krzysztof Kozlowski wrote:
> 
> > The charger's module device table used the same name as regulator driver
> > causing a build break when charger was compiled as a module:
> > 
> > drivers/power/max14577_charger.c:598:1: error: ‘__mod_platform__max14577_regulator_id_device_table’ aliased to undefined symbol ‘max14577_regulator_id’
> > make[2]: *** [drivers/power/max14577_charger.o] Error 1
> > 
> > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> > Reported-by: kbuild test robot <fengguang.wu@intel.com>
> > ---
> >  drivers/power/max14577_charger.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> I have fixed this up into the original set and re-sent the
> pull-request.

Great, thanks!

Best regards,
Krzysztof

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/power/max14577_charger.c b/drivers/power/max14577_charger.c
index c2e87c41d853..0a2bc7277026 100644
--- a/drivers/power/max14577_charger.c
+++ b/drivers/power/max14577_charger.c
@@ -595,7 +595,7 @@  static const struct platform_device_id max14577_charger_id[] = {
 	{ "max77836-charger", MAXIM_DEVICE_TYPE_MAX77836, },
 	{ }
 };
-MODULE_DEVICE_TABLE(platform, max14577_regulator_id);
+MODULE_DEVICE_TABLE(platform, max14577_charger_id);
 
 static struct platform_driver max14577_charger_driver = {
 	.driver = {