diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-04-09 18:02:19 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-04-26 16:55:23 +0530 |
commit | ffcfc20f7489ecc1b5fbde68dae14f72c47330ab (patch) | |
tree | ce386b5ad301fd05a306c857df41b813cb16f744 /drivers/dma | |
parent | c7266d26dc12bc056c0a7ffdbd4f4df41a8c25da (diff) | |
download | linux-stable-ffcfc20f7489ecc1b5fbde68dae14f72c47330ab.tar.gz linux-stable-ffcfc20f7489ecc1b5fbde68dae14f72c47330ab.tar.bz2 linux-stable-ffcfc20f7489ecc1b5fbde68dae14f72c47330ab.zip |
dmaengine: idma64: Move driver name to the header
There are two drivers that are relying on the iDMA 64-bit driver name
to match. Instead of duplicating string in both of them, dedicate
a header file and share it between users.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/idma64.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/dma/idma64.c b/drivers/dma/idma64.c index 83796a33dc16..07fd4f25cdd8 100644 --- a/drivers/dma/idma64.c +++ b/drivers/dma/idma64.c @@ -19,10 +19,9 @@ #include <linux/platform_device.h> #include <linux/slab.h> -#include "idma64.h" +#include <linux/dma/idma64.h> -/* Platform driver name */ -#define DRV_NAME "idma64" +#include "idma64.h" /* For now we support only two channels */ #define IDMA64_NR_CHAN 2 @@ -699,7 +698,7 @@ static struct platform_driver idma64_platform_driver = { .probe = idma64_platform_probe, .remove = idma64_platform_remove, .driver = { - .name = DRV_NAME, + .name = LPSS_IDMA64_DRIVER_NAME, .pm = &idma64_dev_pm_ops, }, }; @@ -709,4 +708,4 @@ module_platform_driver(idma64_platform_driver); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("iDMA64 core driver"); MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); -MODULE_ALIAS("platform:" DRV_NAME); +MODULE_ALIAS("platform:" LPSS_IDMA64_DRIVER_NAME); |