[PATCH] dma: xilinx: Remove .owner field for driver
From: Michal Simek
Date: Wed Aug 13 2014 - 07:57:50 EST
There is no need to init .owner field.
Based on the patch from Peter Griffin <peter.griffin@xxxxxxxxxx>
"mmc: remove .owner field for drivers using module_platform_driver"
This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."
Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
---
drivers/dma/xilinx/xilinx_vdma.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c
index 42a13e8d4607..a6e64767186e 100644
--- a/drivers/dma/xilinx/xilinx_vdma.c
+++ b/drivers/dma/xilinx/xilinx_vdma.c
@@ -1365,7 +1365,6 @@ static const struct of_device_id xilinx_vdma_of_ids[] = {
static struct platform_driver xilinx_vdma_driver = {
.driver = {
.name = "xilinx-vdma",
- .owner = THIS_MODULE,
.of_match_table = xilinx_vdma_of_ids,
},
.probe = xilinx_vdma_probe,
--
1.8.2.3
Attachment:
pgpsppmEe3vsd.pgp
Description: PGP signature