|
@@ -924,7 +924,6 @@ static int swim_probe(struct platform_device *dev)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
out_kfree:
|
|
out_kfree:
|
|
- platform_set_drvdata(dev, NULL);
|
|
|
|
kfree(swd);
|
|
kfree(swd);
|
|
out_iounmap:
|
|
out_iounmap:
|
|
iounmap(swim_base);
|
|
iounmap(swim_base);
|
|
@@ -962,7 +961,6 @@ static int swim_remove(struct platform_device *dev)
|
|
if (res)
|
|
if (res)
|
|
release_mem_region(res->start, resource_size(res));
|
|
release_mem_region(res->start, resource_size(res));
|
|
|
|
|
|
- platform_set_drvdata(dev, NULL);
|
|
|
|
kfree(swd);
|
|
kfree(swd);
|
|
|
|
|
|
return 0;
|
|
return 0;
|