diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2015-07-28 20:44:41 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-08-03 17:14:57 +0200 |
commit | b5e578631e5c1d77f58727ea0769dd55c462b572 (patch) | |
tree | 27f1c2c37594735199e88efea3e69d90c1b51863 /drivers | |
parent | 26305022e7ffdeff49b15c9ab18e2c0c880356da (diff) | |
download | op-kernel-dev-b5e578631e5c1d77f58727ea0769dd55c462b572.zip op-kernel-dev-b5e578631e5c1d77f58727ea0769dd55c462b572.tar.gz |
rx51-battery: Set name to rx51-battery
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/rx51_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/rx51_battery.c b/drivers/power/rx51_battery.c index ac62069..af9383d 100644 --- a/drivers/power/rx51_battery.c +++ b/drivers/power/rx51_battery.c @@ -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); |