Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1232278 > unrolled thread
| Started by | Alexander Popov <alex.popov@linux.com> |
|---|---|
| First post | 2015-09-24 19:30 +0200 |
| Last post | 2015-09-28 15:20 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v3 3/3] dmaengine: mpc512x: initialize with subsys_initcall() Alexander Popov <alex.popov@linux.com> - 2015-09-24 19:30 +0200
Re: [PATCH v3 3/3] dmaengine: mpc512x: initialize with subsys_initcall() Timur Tabi <timur@tabi.org> - 2015-09-25 02:20 +0200
Re: [PATCH v3 3/3] dmaengine: mpc512x: initialize with subsys_initcall() Alexander Popov <alex.popov@linux.com> - 2015-09-28 15:20 +0200
| From | Alexander Popov <alex.popov@linux.com> |
|---|---|
| Date | 2015-09-24 19:30 +0200 |
| Subject | [PATCH v3 3/3] dmaengine: mpc512x: initialize with subsys_initcall() |
| Message-ID | <qcivg-1fu-23@gated-at.bofh.it> |
Initialize Freescale MPC512x DMA driver with subsys_initcall()
to allow the depending drivers to call dma_request_slave_channel()
during their probe.
Signed-off-by: Alexander Popov <alex.popov@linux.com>
---
drivers/dma/mpc512x_dma.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c
index e6281e7..4f29d7c 100644
--- a/drivers/dma/mpc512x_dma.c
+++ b/drivers/dma/mpc512x_dma.c
@@ -1083,7 +1083,17 @@ static struct platform_driver mpc_dma_driver = {
},
};
-module_platform_driver(mpc_dma_driver);
+static int __init mpc_dma_driver_init(void)
+{
+ return platform_driver_register(&mpc_dma_driver);
+}
+subsys_initcall(mpc_dma_driver_init);
+
+static void __exit mpc_dma_driver_exit(void)
+{
+ platform_driver_unregister(&mpc_dma_driver);
+}
+module_exit(mpc_dma_driver_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Piotr Ziecik <kosmo@semihalf.com>");
--
1.9.1
--
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 | Timur Tabi <timur@tabi.org> |
|---|---|
| Date | 2015-09-25 02:20 +0200 |
| Subject | Re: [PATCH v3 3/3] dmaengine: mpc512x: initialize with subsys_initcall() |
| Message-ID | <qcoU2-22j-1@gated-at.bofh.it> |
| In reply to | #1232278 |
Alexander Popov wrote: > Initialize Freescale MPC512x DMA driver with subsys_initcall() > to allow the depending drivers to call dma_request_slave_channel() > during their probe. > > Signed-off-by: Alexander Popov<alex.popov@linux.com> Is there any way we can use -EPROBEDEFER instead? -- 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] | [next] | [standalone]
| From | Alexander Popov <alex.popov@linux.com> |
|---|---|
| Date | 2015-09-28 15:20 +0200 |
| Subject | Re: [PATCH v3 3/3] dmaengine: mpc512x: initialize with subsys_initcall() |
| Message-ID | <qdGvw-6My-19@gated-at.bofh.it> |
| In reply to | #1232501 |
On 25.09.2015 03:16, Timur Tabi wrote: > Alexander Popov wrote: >> Initialize Freescale MPC512x DMA driver with subsys_initcall() >> to allow the depending drivers to call dma_request_slave_channel() >> during their probe. >> >> Signed-off-by: Alexander Popov<alex.popov@linux.com> > > Is there any way we can use -EPROBEDEFER instead? Thanks Timur, I'll try. Best regards, Alexander -- 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