Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1269196 > unrolled thread
| Started by | Nizam Haider <nizamhaider786@gmail.com> |
|---|---|
| First post | 2015-11-13 21:30 +0100 |
| Last post | 2015-11-15 12:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] Rtc: rtc-gemini.c: Remove unnecessary platform_set_drvdata() Nizam Haider <nizamhaider786@gmail.com> - 2015-11-13 21:30 +0100
Re: [PATCH] Rtc: rtc-gemini.c: Remove unnecessary platform_set_drvdata() Hans Ulli Kroll <ulli.kroll@gmail.com> - 2015-11-15 12:00 +0100
| From | Nizam Haider <nizamhaider786@gmail.com> |
|---|---|
| Date | 2015-11-13 21:30 +0100 |
| Subject | [PATCH] Rtc: rtc-gemini.c: Remove unnecessary platform_set_drvdata() |
| Message-ID | <qut8T-2FM-11@gated-at.bofh.it> |
The driver core clears the driver data to NULL after device_release or on probe failure Signed-off-by: Nizam Haider <nijamh@cdac.in> --- drivers/rtc/rtc-gemini.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c index e841846..f46b6d4 100644 --- a/drivers/rtc/rtc-gemini.c +++ b/drivers/rtc/rtc-gemini.c @@ -156,7 +156,6 @@ static int gemini_rtc_remove(struct platform_device *pdev) struct gemini_rtc *rtc = platform_get_drvdata(pdev); rtc_device_unregister(rtc->rtc_dev); - platform_set_drvdata(pdev, NULL); return 0; } -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Hans Ulli Kroll <ulli.kroll@gmail.com> |
|---|---|
| Date | 2015-11-15 12:00 +0100 |
| Subject | Re: [PATCH] Rtc: rtc-gemini.c: Remove unnecessary platform_set_drvdata() |
| Message-ID | <qv3cm-gr-17@gated-at.bofh.it> |
| In reply to | #1269196 |
On Sat, 14 Nov 2015, Nizam Haider wrote: > The driver core clears the driver data to NULL after device_release > or on probe failure > > Signed-off-by: Nizam Haider <nijamh@cdac.in> > --- > drivers/rtc/rtc-gemini.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c > index e841846..f46b6d4 100644 > --- a/drivers/rtc/rtc-gemini.c > +++ b/drivers/rtc/rtc-gemini.c > @@ -156,7 +156,6 @@ static int gemini_rtc_remove(struct platform_device *pdev) > struct gemini_rtc *rtc = platform_get_drvdata(pdev); > > rtc_device_unregister(rtc->rtc_dev); > - platform_set_drvdata(pdev, NULL); > > return 0; > } > -- > 1.8.1.4 > > Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web