Explorar o código

Thermal: kirkwood: Remove redundant platform_set_drvdata()

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>
Sachin Kamat %!s(int64=12) %!d(string=hai) anos
pai
achega
0f3913bd2d
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      drivers/thermal/kirkwood_thermal.c

+ 0 - 1
drivers/thermal/kirkwood_thermal.c

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