rx51-battery: Set name to rx51-battery
authorPali Rohár <pali.rohar@gmail.com>
Tue, 28 Jul 2015 18:44:41 +0000 (20:44 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 3 Aug 2015 15:14:57 +0000 (17:14 +0200)
For compatibility between board code and DT, set battery name to same value.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/rx51_battery.c

index ac6206951d5842235cdf167a69bca0f93c6b5bd3..af9383d23d122e36b99efb8868f9c84790f17267 100644 (file)
@@ -215,7 +215,7 @@ static int rx51_battery_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, di);
 
        di->dev = &pdev->dev;
-       di->bat_desc.name = dev_name(&pdev->dev);
+       di->bat_desc.name = "rx51-battery";
        di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY;
        di->bat_desc.properties = rx51_battery_props;
        di->bat_desc.num_properties = ARRAY_SIZE(rx51_battery_props);