Commit 5c845ac8 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Luis Henriques

dmaengine: dw: append MODULE_ALIAS for platform driver

commit a104a45b upstream.

The commit 9cade1a4 (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: default avatar"Blin, Jerome" <jerome.blin@intel.com>
Fixes: 9cade1a4 (dma: dw: split driver to library part and platform code)
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 474943c5
......@@ -25,6 +25,8 @@
#include "internal.h"
#define DRV_NAME "dw_dmac"
struct dw_dma_of_filter_args {
struct dw_dma *dw;
unsigned int req;
......@@ -283,7 +285,7 @@ static struct platform_driver dw_driver = {
.remove = dw_remove,
.shutdown = dw_shutdown,
.driver = {
.name = "dw_dmac",
.name = DRV_NAME,
.pm = &dw_dev_pm_ops,
.of_match_table = of_match_ptr(dw_dma_of_id_table),
.acpi_match_table = ACPI_PTR(dw_dma_acpi_id_table),
......@@ -304,3 +306,4 @@ module_exit(dw_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller platform driver");
MODULE_ALIAS("platform:" DRV_NAME);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment