Skip to content

Commit 660c407

Browse files
jhovoldvinodkoul
authored andcommitted
dmaengine: dw: drop unused module alias
The driver does not support anything but OF and ACPI probe since commit b375741 ("dmaengine: dw: platform: Use struct dw_dma_chip_pdata") so drop the unused platform module alias along with the now unnecessary driver name define. Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251120114524.8431-3-johan@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent bfab38b commit 660c407

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/dma/dw/platform.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
#include "internal.h"
2323

24-
#define DRV_NAME "dw_dmac"
25-
2624
static int dw_probe(struct platform_device *pdev)
2725
{
2826
const struct dw_dma_chip_pdata *match;
@@ -190,7 +188,7 @@ static struct platform_driver dw_driver = {
190188
.remove = dw_remove,
191189
.shutdown = dw_shutdown,
192190
.driver = {
193-
.name = DRV_NAME,
191+
.name = "dw_dmac",
194192
.pm = pm_sleep_ptr(&dw_dev_pm_ops),
195193
.of_match_table = of_match_ptr(dw_dma_of_id_table),
196194
.acpi_match_table = ACPI_PTR(dw_dma_acpi_id_table),
@@ -211,4 +209,3 @@ module_exit(dw_exit);
211209

212210
MODULE_LICENSE("GPL v2");
213211
MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller platform driver");
214-
MODULE_ALIAS("platform:" DRV_NAME);

0 commit comments

Comments
 (0)