Skip to content

Commit a104a45

Browse files
andy-shevVinod Koul
authored andcommitted
dmaengine: dw: append MODULE_ALIAS for platform driver
The commit 9cade1a (dma: dw: split driver to library part and platform code) introduced a separate platform driver but missed to add a MODULE_ALIAS("platform:dw_dmac"); to that module. The patch adds this to get driver loaded automatically if platform device is registered. Reported-by: "Blin, Jerome" <[email protected]> Fixes: 9cade1a (dma: dw: split driver to library part and platform code) Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent 855832e commit a104a45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/dma/dw/platform.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
#include "internal.h"
2828

29+
#define DRV_NAME "dw_dmac"
30+
2931
static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec,
3032
struct of_dma *ofdma)
3133
{
@@ -284,7 +286,7 @@ static struct platform_driver dw_driver = {
284286
.remove = dw_remove,
285287
.shutdown = dw_shutdown,
286288
.driver = {
287-
.name = "dw_dmac",
289+
.name = DRV_NAME,
288290
.pm = &dw_dev_pm_ops,
289291
.of_match_table = of_match_ptr(dw_dma_of_id_table),
290292
.acpi_match_table = ACPI_PTR(dw_dma_acpi_id_table),
@@ -305,3 +307,4 @@ module_exit(dw_exit);
305307

306308
MODULE_LICENSE("GPL v2");
307309
MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller platform driver");
310+
MODULE_ALIAS("platform:" DRV_NAME);

0 commit comments

Comments
 (0)