public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/9] dma: pl330: Remove unnecessary amba_set_drvdata()
@ 2013-10-03  9:46 Michal Simek
  2013-10-03  9:46 ` [PATCH 2/9] input: ambakmi: " Michal Simek
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Michal Simek @ 2013-10-03  9:46 UTC (permalink / raw)
  To: linux-kernel, monstr; +Cc: Dan Williams, Vinod Koul

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

Driver core clears the driver data to NULL after device_release
or on probe failure, so just remove it from here.

Driver core change:
"device-core: Ensure drvdata = NULL when no driver is bound"
(sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
 drivers/dma/pl330.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index a562d24..dfb2931 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -3029,8 +3029,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)

 	return 0;
 probe_err3:
-	amba_set_drvdata(adev, NULL);
-
 	/* Idle the DMAC */
 	list_for_each_entry_safe(pch, _p, &pdmac->ddma.channels,
 			chan.device_node) {
@@ -3064,7 +3062,6 @@ static int pl330_remove(struct amba_device *adev)
 		of_dma_controller_free(adev->dev.of_node);

 	dma_async_device_unregister(&pdmac->ddma);
-	amba_set_drvdata(adev, NULL);

 	/* Idle the DMAC */
 	list_for_each_entry_safe(pch, _p, &pdmac->ddma.channels,
--
1.8.2.3


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2013-10-31 15:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-03  9:46 [PATCH 1/9] dma: pl330: Remove unnecessary amba_set_drvdata() Michal Simek
2013-10-03  9:46 ` [PATCH 2/9] input: ambakmi: " Michal Simek
2013-10-03  9:46 ` [PATCH 3/9] ARM: etm: " Michal Simek
2013-10-03  9:46 ` [PATCH 4/9] mmc: mmci: " Michal Simek
2013-10-03  9:46 ` [PATCH 5/9] rtc: amba: " Michal Simek
2013-10-03  9:46 ` [PATCH 6/9] serial: " Michal Simek
2013-10-03  9:46 ` [PATCH 7/9] spi: pl022: " Michal Simek
2013-10-03 13:07   ` Mark Brown
2013-10-03  9:46 ` [PATCH 8/9] watchdog: sp805_wdt: " Michal Simek
2013-10-03 16:47   ` Guenter Roeck
2013-10-29  7:49   ` Wim Van Sebroeck
2013-10-03  9:46 ` [PATCH 9/9] video: amba-clcd: " Michal Simek
2013-10-09  8:44   ` Tomi Valkeinen
2013-10-31 14:25 ` [PATCH 1/9] dma: pl330: " Vinod Koul

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