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>
This commit is contained in:
Pali Rohár 2015-07-28 20:44:41 +02:00 committed by Sebastian Reichel
parent 26305022e7
commit b5e578631e
1 changed files with 1 additions and 1 deletions

View 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);