public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] clocksource: sh_tmu: remove unnecessary platform_set_drvdata()
@ 2013-12-03  6:50 Jingoo Han
  2013-12-03  6:51 ` [PATCH 2/2] clocksource: sh_mtu2: " Jingoo Han
  2013-12-04 14:54 ` [PATCH 1/2] clocksource: sh_tmu: " Daniel Lezcano
  0 siblings, 2 replies; 6+ messages in thread
From: Jingoo Han @ 2013-12-03  6:50 UTC (permalink / raw)
  To: 'Daniel Lezcano'
  Cc: 'Thomas Gleixner', linux-kernel, 'Magnus Damm',
	'Paul Mundt', 'Simon Horman',
	'Laurent Pinchart', 'Jingoo Han'

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
---
 drivers/clocksource/sh_tmu.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c
index 63557cd..e29295e 100644
--- a/drivers/clocksource/sh_tmu.c
+++ b/drivers/clocksource/sh_tmu.c
@@ -523,7 +523,6 @@ static int sh_tmu_probe(struct platform_device *pdev)
 	ret = sh_tmu_setup(p, pdev);
 	if (ret) {
 		kfree(p);
-		platform_set_drvdata(pdev, NULL);
 		pm_runtime_idle(&pdev->dev);
 		return ret;
 	}
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH 1/2] clocksource: sh_tmu: remove unnecessary platform_set_drvdata()
@ 2013-08-21  9:21 Jingoo Han
  2013-08-22  0:29 ` Simon Horman
  0 siblings, 1 reply; 6+ messages in thread
From: Jingoo Han @ 2013-08-21  9:21 UTC (permalink / raw)
  To: 'Daniel Lezcano'
  Cc: 'Thomas Gleixner', linux-kernel, 'Magnus Damm',
	'Paul Mundt', 'Simon Horman',
	'Jingoo Han'

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/clocksource/sh_tmu.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c
index 78b8dae..54ab475 100644
--- a/drivers/clocksource/sh_tmu.c
+++ b/drivers/clocksource/sh_tmu.c
@@ -509,7 +509,6 @@ static int sh_tmu_probe(struct platform_device *pdev)
 	ret = sh_tmu_setup(p, pdev);
 	if (ret) {
 		kfree(p);
-		platform_set_drvdata(pdev, NULL);
 		pm_runtime_idle(&pdev->dev);
 		return ret;
 	}
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-12-04 14:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-03  6:50 [PATCH 1/2] clocksource: sh_tmu: remove unnecessary platform_set_drvdata() Jingoo Han
2013-12-03  6:51 ` [PATCH 2/2] clocksource: sh_mtu2: " Jingoo Han
2013-12-04 14:54   ` Daniel Lezcano
2013-12-04 14:54 ` [PATCH 1/2] clocksource: sh_tmu: " Daniel Lezcano
  -- strict thread matches above, loose matches on Subject: below --
2013-08-21  9:21 Jingoo Han
2013-08-22  0:29 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox