Message ID | 1367575034-18432-1-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show |
On Fri, May 03, 2013 at 03:27:08PM +0530, Sachin Kamat wrote: > 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> > --- > drivers/thermal/armada_thermal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c > index 5b4d75f..0d02d4e 100644 > --- a/drivers/thermal/armada_thermal.c > +++ b/drivers/thermal/armada_thermal.c > @@ -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; > } Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
On 03-05-2013 05:57, Sachin Kamat wrote: > 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> I am fine with this patch. Acked-by: Eduardo Valentin <eduardo.valentin@ti.com> > --- > drivers/thermal/armada_thermal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c > index 5b4d75f..0d02d4e 100644 > --- a/drivers/thermal/armada_thermal.c > +++ b/drivers/thermal/armada_thermal.c > @@ -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; > } >
diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c index 5b4d75f..0d02d4e 100644 --- a/drivers/thermal/armada_thermal.c +++ b/drivers/thermal/armada_thermal.c @@ -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; }
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> --- drivers/thermal/armada_thermal.c | 1 - 1 file changed, 1 deletion(-)