Message ID | 1367575034-18432-4-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show |
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: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Eduardo Valentin <eduardo.valentin@ti.com> > --- > drivers/thermal/kirkwood_thermal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/kirkwood_thermal.c b/drivers/thermal/kirkwood_thermal.c > index dfeceaf..b57a45d 100644 > --- a/drivers/thermal/kirkwood_thermal.c > +++ b/drivers/thermal/kirkwood_thermal.c > @@ -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; > } >
2013/5/3 Sachin Kamat <sachin.kamat@linaro.org>: > 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: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> > --- > drivers/thermal/kirkwood_thermal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/kirkwood_thermal.c b/drivers/thermal/kirkwood_thermal.c > index dfeceaf..b57a45d 100644 > --- a/drivers/thermal/kirkwood_thermal.c > +++ b/drivers/thermal/kirkwood_thermal.c > @@ -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; > } > -- > 1.7.9.5 >
diff --git a/drivers/thermal/kirkwood_thermal.c b/drivers/thermal/kirkwood_thermal.c index dfeceaf..b57a45d 100644 --- a/drivers/thermal/kirkwood_thermal.c +++ b/drivers/thermal/kirkwood_thermal.c @@ -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; }
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> --- drivers/thermal/kirkwood_thermal.c | 1 - 1 file changed, 1 deletion(-)