Skip to content

Commit b648dce

Browse files
andy-shevsashalevin
authored andcommitted
dmaengine: dw: append MODULE_ALIAS for platform driver
[ Upstream commit a104a45 ] 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" <jerome.blin@intel.com> Fixes: 9cade1a (dma: dw: split driver to library part and platform code) Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent e0bf428 commit b648dce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/dma/dw/platform.c‎

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

2626
#include "internal.h"
2727

28+
#define DRV_NAME "dw_dmac"
29+
2830
static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec,
2931
struct of_dma *ofdma)
3032
{
@@ -279,7 +281,7 @@ static struct platform_driver dw_driver = {
279281
.remove = dw_remove,
280282
.shutdown = dw_shutdown,
281283
.driver = {
282-
.name = "dw_dmac",
284+
.name = DRV_NAME,
283285
.pm = &dw_dev_pm_ops,
284286
.of_match_table = of_match_ptr(dw_dma_of_id_table),
285287
.acpi_match_table = ACPI_PTR(dw_dma_acpi_id_table),
@@ -300,3 +302,4 @@ module_exit(dw_exit);
300302

301303
MODULE_LICENSE("GPL v2");
302304
MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller platform driver");
305+
MODULE_ALIAS("platform:" DRV_NAME);

0 commit comments

Comments
 (0)