dma: xilinx: Remove .owner field for driver
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 11:57:42 +0000 (13:57 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 19 Aug 2014 17:06:50 +0000 (22:36 +0530)
There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"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@xilinx.com>
Reviewed-by: Levente Kurusa <lkurusa@redhat.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_vdma.c

index 42a13e8d460781492486d94c5708fafb2f659e3d..a6e64767186e7d24e0b241dc97f3225196c85c39 100644 (file)
@@ -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,