]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Thermal: armada_thermal: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 09:57:08 +0000 (09:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Mon, 6 May 2013 14:36:55 +0000 (22:36 +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: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/armada_thermal.c

index 5b4d75fd7b49f3f857e39dacc04488977c3d448b..0d02d4edeecb04bf48936ab8482391959b555a3e 100644 (file)
@@ -210,7 +210,6 @@ static int armada_thermal_exit(struct platform_device *pdev)
                platform_get_drvdata(pdev);
 
        thermal_zone_device_unregister(armada_thermal);
-       platform_set_drvdata(pdev, NULL);
 
        return 0;
 }