diff options
Diffstat (limited to 'drivers/dma/sh')
-rw-r--r-- | drivers/dma/sh/rcar-audmapp.c | 3 | ||||
-rw-r--r-- | drivers/dma/sh/rcar-hpbdma.c | 3 | ||||
-rw-r--r-- | drivers/dma/sh/shdma-base.c | 4 | ||||
-rw-r--r-- | drivers/dma/sh/shdma-of.c | 1 | ||||
-rw-r--r-- | drivers/dma/sh/shdmac.c | 2 | ||||
-rw-r--r-- | drivers/dma/sh/sudmac.c | 3 |
6 files changed, 3 insertions, 13 deletions
diff --git a/drivers/dma/sh/rcar-audmapp.c b/drivers/dma/sh/rcar-audmapp.c index 80fd2aeb4870..d95bbdd721f4 100644 --- a/drivers/dma/sh/rcar-audmapp.c +++ b/drivers/dma/sh/rcar-audmapp.c | |||
@@ -253,7 +253,6 @@ static int audmapp_chan_probe(struct platform_device *pdev, | |||
253 | 253 | ||
254 | static void audmapp_chan_remove(struct audmapp_device *audev) | 254 | static void audmapp_chan_remove(struct audmapp_device *audev) |
255 | { | 255 | { |
256 | struct dma_device *dma_dev = &audev->shdma_dev.dma_dev; | ||
257 | struct shdma_chan *schan; | 256 | struct shdma_chan *schan; |
258 | int i; | 257 | int i; |
259 | 258 | ||
@@ -261,7 +260,6 @@ static void audmapp_chan_remove(struct audmapp_device *audev) | |||
261 | BUG_ON(!schan); | 260 | BUG_ON(!schan); |
262 | shdma_chan_remove(schan); | 261 | shdma_chan_remove(schan); |
263 | } | 262 | } |
264 | dma_dev->chancnt = 0; | ||
265 | } | 263 | } |
266 | 264 | ||
267 | static struct dma_chan *audmapp_of_xlate(struct of_phandle_args *dma_spec, | 265 | static struct dma_chan *audmapp_of_xlate(struct of_phandle_args *dma_spec, |
@@ -367,7 +365,6 @@ static struct platform_driver audmapp_driver = { | |||
367 | .probe = audmapp_probe, | 365 | .probe = audmapp_probe, |
368 | .remove = audmapp_remove, | 366 | .remove = audmapp_remove, |
369 | .driver = { | 367 | .driver = { |
370 | .owner = THIS_MODULE, | ||
371 | .name = "rcar-audmapp-engine", | 368 | .name = "rcar-audmapp-engine", |
372 | .of_match_table = audmapp_of_match, | 369 | .of_match_table = audmapp_of_match, |
373 | }, | 370 | }, |
diff --git a/drivers/dma/sh/rcar-hpbdma.c b/drivers/dma/sh/rcar-hpbdma.c index b212d9471ab5..20a6f6f2a018 100644 --- a/drivers/dma/sh/rcar-hpbdma.c +++ b/drivers/dma/sh/rcar-hpbdma.c | |||
@@ -619,7 +619,6 @@ error: | |||
619 | 619 | ||
620 | static void hpb_dmae_chan_remove(struct hpb_dmae_device *hpbdev) | 620 | static void hpb_dmae_chan_remove(struct hpb_dmae_device *hpbdev) |
621 | { | 621 | { |
622 | struct dma_device *dma_dev = &hpbdev->shdma_dev.dma_dev; | ||
623 | struct shdma_chan *schan; | 622 | struct shdma_chan *schan; |
624 | int i; | 623 | int i; |
625 | 624 | ||
@@ -628,7 +627,6 @@ static void hpb_dmae_chan_remove(struct hpb_dmae_device *hpbdev) | |||
628 | 627 | ||
629 | shdma_chan_remove(schan); | 628 | shdma_chan_remove(schan); |
630 | } | 629 | } |
631 | dma_dev->chancnt = 0; | ||
632 | } | 630 | } |
633 | 631 | ||
634 | static int hpb_dmae_remove(struct platform_device *pdev) | 632 | static int hpb_dmae_remove(struct platform_device *pdev) |
@@ -655,7 +653,6 @@ static struct platform_driver hpb_dmae_driver = { | |||
655 | .remove = hpb_dmae_remove, | 653 | .remove = hpb_dmae_remove, |
656 | .shutdown = hpb_dmae_shutdown, | 654 | .shutdown = hpb_dmae_shutdown, |
657 | .driver = { | 655 | .driver = { |
658 | .owner = THIS_MODULE, | ||
659 | .name = "hpb-dma-engine", | 656 | .name = "hpb-dma-engine", |
660 | }, | 657 | }, |
661 | }; | 658 | }; |
diff --git a/drivers/dma/sh/shdma-base.c b/drivers/dma/sh/shdma-base.c index 42d497416196..3a2adb131d46 100644 --- a/drivers/dma/sh/shdma-base.c +++ b/drivers/dma/sh/shdma-base.c | |||
@@ -391,6 +391,8 @@ static dma_async_tx_callback __ld_cleanup(struct shdma_chan *schan, bool all) | |||
391 | dev_dbg(schan->dev, "Bring down channel %d\n", schan->id); | 391 | dev_dbg(schan->dev, "Bring down channel %d\n", schan->id); |
392 | pm_runtime_put(schan->dev); | 392 | pm_runtime_put(schan->dev); |
393 | schan->pm_state = SHDMA_PM_ESTABLISHED; | 393 | schan->pm_state = SHDMA_PM_ESTABLISHED; |
394 | } else if (schan->pm_state == SHDMA_PM_PENDING) { | ||
395 | shdma_chan_xfer_ld_queue(schan); | ||
394 | } | 396 | } |
395 | } | 397 | } |
396 | } | 398 | } |
@@ -951,7 +953,7 @@ void shdma_chan_probe(struct shdma_dev *sdev, | |||
951 | /* Add the channel to DMA device channel list */ | 953 | /* Add the channel to DMA device channel list */ |
952 | list_add_tail(&schan->dma_chan.device_node, | 954 | list_add_tail(&schan->dma_chan.device_node, |
953 | &sdev->dma_dev.channels); | 955 | &sdev->dma_dev.channels); |
954 | sdev->schan[sdev->dma_dev.chancnt++] = schan; | 956 | sdev->schan[id] = schan; |
955 | } | 957 | } |
956 | EXPORT_SYMBOL(shdma_chan_probe); | 958 | EXPORT_SYMBOL(shdma_chan_probe); |
957 | 959 | ||
diff --git a/drivers/dma/sh/shdma-of.c b/drivers/dma/sh/shdma-of.c index b4ff9d3e56d1..f999f9b0d314 100644 --- a/drivers/dma/sh/shdma-of.c +++ b/drivers/dma/sh/shdma-of.c | |||
@@ -66,7 +66,6 @@ MODULE_DEVICE_TABLE(of, sh_dmae_of_match); | |||
66 | 66 | ||
67 | static struct platform_driver shdma_of = { | 67 | static struct platform_driver shdma_of = { |
68 | .driver = { | 68 | .driver = { |
69 | .owner = THIS_MODULE, | ||
70 | .name = "shdma-of", | 69 | .name = "shdma-of", |
71 | .of_match_table = shdma_of_match, | 70 | .of_match_table = shdma_of_match, |
72 | }, | 71 | }, |
diff --git a/drivers/dma/sh/shdmac.c b/drivers/dma/sh/shdmac.c index 58eb85770eba..b65317c6ea4e 100644 --- a/drivers/dma/sh/shdmac.c +++ b/drivers/dma/sh/shdmac.c | |||
@@ -572,7 +572,6 @@ err_no_irq: | |||
572 | 572 | ||
573 | static void sh_dmae_chan_remove(struct sh_dmae_device *shdev) | 573 | static void sh_dmae_chan_remove(struct sh_dmae_device *shdev) |
574 | { | 574 | { |
575 | struct dma_device *dma_dev = &shdev->shdma_dev.dma_dev; | ||
576 | struct shdma_chan *schan; | 575 | struct shdma_chan *schan; |
577 | int i; | 576 | int i; |
578 | 577 | ||
@@ -581,7 +580,6 @@ static void sh_dmae_chan_remove(struct sh_dmae_device *shdev) | |||
581 | 580 | ||
582 | shdma_chan_remove(schan); | 581 | shdma_chan_remove(schan); |
583 | } | 582 | } |
584 | dma_dev->chancnt = 0; | ||
585 | } | 583 | } |
586 | 584 | ||
587 | static void sh_dmae_shutdown(struct platform_device *pdev) | 585 | static void sh_dmae_shutdown(struct platform_device *pdev) |
diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c index 3ce103909896..6da2eaa6c294 100644 --- a/drivers/dma/sh/sudmac.c +++ b/drivers/dma/sh/sudmac.c | |||
@@ -295,7 +295,6 @@ err_no_irq: | |||
295 | 295 | ||
296 | static void sudmac_chan_remove(struct sudmac_device *su_dev) | 296 | static void sudmac_chan_remove(struct sudmac_device *su_dev) |
297 | { | 297 | { |
298 | struct dma_device *dma_dev = &su_dev->shdma_dev.dma_dev; | ||
299 | struct shdma_chan *schan; | 298 | struct shdma_chan *schan; |
300 | int i; | 299 | int i; |
301 | 300 | ||
@@ -304,7 +303,6 @@ static void sudmac_chan_remove(struct sudmac_device *su_dev) | |||
304 | 303 | ||
305 | shdma_chan_remove(schan); | 304 | shdma_chan_remove(schan); |
306 | } | 305 | } |
307 | dma_dev->chancnt = 0; | ||
308 | } | 306 | } |
309 | 307 | ||
310 | static dma_addr_t sudmac_slave_addr(struct shdma_chan *schan) | 308 | static dma_addr_t sudmac_slave_addr(struct shdma_chan *schan) |
@@ -411,7 +409,6 @@ static int sudmac_remove(struct platform_device *pdev) | |||
411 | 409 | ||
412 | static struct platform_driver sudmac_driver = { | 410 | static struct platform_driver sudmac_driver = { |
413 | .driver = { | 411 | .driver = { |
414 | .owner = THIS_MODULE, | ||
415 | .name = SUDMAC_DRV_NAME, | 412 | .name = SUDMAC_DRV_NAME, |
416 | }, | 413 | }, |
417 | .probe = sudmac_probe, | 414 | .probe = sudmac_probe, |