]> Pileus Git - ~andy/linux/blobdiff - drivers/power/bq27x00_battery.c
drm/i915: Always prefer CPU relocations with LLC
[~andy/linux] / drivers / power / bq27x00_battery.c
index 26037ca7efb49cf78c8ed41d097f6bad6f5ffc5b..b309713b63bc59dd504a6a01c2325557a10c9a77 100644 (file)
@@ -966,7 +966,6 @@ static int bq27000_battery_probe(struct platform_device *pdev)
        return 0;
 
 err_free:
-       platform_set_drvdata(pdev, NULL);
        kfree(di);
 
        return ret;
@@ -978,7 +977,6 @@ static int bq27000_battery_remove(struct platform_device *pdev)
 
        bq27x00_powersupply_unregister(di);
 
-       platform_set_drvdata(pdev, NULL);
        kfree(di);
 
        return 0;