Thermal: kirkwood: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 09:57:11 +0000 (09:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Mon, 6 May 2013 14:37:04 +0000 (22:37 +0800)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/kirkwood_thermal.c

index dfeceaffbc03c3f462170d721124ad3b3eac1db9..b57a45daf0df92ce4aeead741fe8a32357f3b1ea 100644 (file)
@@ -108,7 +108,6 @@ static int kirkwood_thermal_exit(struct platform_device *pdev)
                platform_get_drvdata(pdev);
 
        thermal_zone_device_unregister(kirkwood_thermal);
-       platform_set_drvdata(pdev, NULL);
 
        return 0;
 }