Message ID | 1367575034-18432-2-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show |
On Fri, May 03, 2013 at 03:27:09PM +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: Andrew Lunn <andrew@lunn.ch> > --- > drivers/thermal/dove_thermal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c > index 4b15a5f..900479e 100644 > --- a/drivers/thermal/dove_thermal.c > +++ b/drivers/thermal/dove_thermal.c > @@ -182,7 +182,6 @@ static int dove_thermal_exit(struct platform_device *pdev) > platform_get_drvdata(pdev); > > thermal_zone_device_unregister(dove_thermal); > - platform_set_drvdata(pdev, NULL); > > return 0; > } > -- > 1.7.9.5 > Acked-by: Andrew Lunn <andrew@lunn.ch>
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: Andrew Lunn <andrew@lunn.ch> Acked-by: Eduardo Valentin <eduardo.valentin@ti.com> > --- > drivers/thermal/dove_thermal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c > index 4b15a5f..900479e 100644 > --- a/drivers/thermal/dove_thermal.c > +++ b/drivers/thermal/dove_thermal.c > @@ -182,7 +182,6 @@ static int dove_thermal_exit(struct platform_device *pdev) > platform_get_drvdata(pdev); > > thermal_zone_device_unregister(dove_thermal); > - platform_set_drvdata(pdev, NULL); > > return 0; > } >
diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c index 4b15a5f..900479e 100644 --- a/drivers/thermal/dove_thermal.c +++ b/drivers/thermal/dove_thermal.c @@ -182,7 +182,6 @@ static int dove_thermal_exit(struct platform_device *pdev) platform_get_drvdata(pdev); thermal_zone_device_unregister(dove_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: Andrew Lunn <andrew@lunn.ch> --- drivers/thermal/dove_thermal.c | 1 - 1 file changed, 1 deletion(-)