Commit ae9fb6e8 authored by Daniel Mack's avatar Daniel Mack Committed by Anton Vorontsov

ds2760_battery: cleanups in ds2760_battery_probe()

Removed struct ds2760_platform_data which wasn't defined anywhere.
Indentation cleanups.
Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Acked-by: default avatarMatt Reimer <mreimer@vpop.net>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent ccc0d38e
...@@ -344,7 +344,6 @@ static int ds2760_battery_probe(struct platform_device *pdev) ...@@ -344,7 +344,6 @@ static int ds2760_battery_probe(struct platform_device *pdev)
{ {
int retval = 0; int retval = 0;
struct ds2760_device_info *di; struct ds2760_device_info *di;
struct ds2760_platform_data *pdata;
di = kzalloc(sizeof(*di), GFP_KERNEL); di = kzalloc(sizeof(*di), GFP_KERNEL);
if (!di) { if (!di) {
...@@ -354,7 +353,6 @@ static int ds2760_battery_probe(struct platform_device *pdev) ...@@ -354,7 +353,6 @@ static int ds2760_battery_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, di); platform_set_drvdata(pdev, di);
pdata = pdev->dev.platform_data;
di->dev = &pdev->dev; di->dev = &pdev->dev;
di->w1_dev = pdev->dev.parent; di->w1_dev = pdev->dev.parent;
di->bat.name = dev_name(&pdev->dev); di->bat.name = dev_name(&pdev->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment