diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-04-09 11:02:19 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-04-26 07:25:23 -0400 |
commit | ffcfc20f7489ecc1b5fbde68dae14f72c47330ab (patch) | |
tree | ce386b5ad301fd05a306c857df41b813cb16f744 /drivers/dma/idma64.c | |
parent | c7266d26dc12bc056c0a7ffdbd4f4df41a8c25da (diff) |
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/idma64.c')
-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 @@ | |||
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
21 | 21 | ||
22 | #include "idma64.h" | 22 | #include <linux/dma/idma64.h> |
23 | 23 | ||
24 | /* Platform driver name */ | 24 | #include "idma64.h" |
25 | #define DRV_NAME "idma64" | ||
26 | 25 | ||
27 | /* For now we support only two channels */ | 26 | /* For now we support only two channels */ |
28 | #define IDMA64_NR_CHAN 2 | 27 | #define IDMA64_NR_CHAN 2 |
@@ -699,7 +698,7 @@ static struct platform_driver idma64_platform_driver = { | |||
699 | .probe = idma64_platform_probe, | 698 | .probe = idma64_platform_probe, |
700 | .remove = idma64_platform_remove, | 699 | .remove = idma64_platform_remove, |
701 | .driver = { | 700 | .driver = { |
702 | .name = DRV_NAME, | 701 | .name = LPSS_IDMA64_DRIVER_NAME, |
703 | .pm = &idma64_dev_pm_ops, | 702 | .pm = &idma64_dev_pm_ops, |
704 | }, | 703 | }, |
705 | }; | 704 | }; |
@@ -709,4 +708,4 @@ module_platform_driver(idma64_platform_driver); | |||
709 | MODULE_LICENSE("GPL v2"); | 708 | MODULE_LICENSE("GPL v2"); |
710 | MODULE_DESCRIPTION("iDMA64 core driver"); | 709 | MODULE_DESCRIPTION("iDMA64 core driver"); |
711 | MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); | 710 | MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); |
712 | MODULE_ALIAS("platform:" DRV_NAME); | 711 | MODULE_ALIAS("platform:" LPSS_IDMA64_DRIVER_NAME); |