]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
net: xilinx: Remove .owner field for driver
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 11:40:26 +0000 (13:40 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 12:12:41 +0000 (14:12 +0200)
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>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index 17c651cf5b4b4b3d45c386668d2fc962430ae5e5..16ed20b3b062abf23fc75cb9b6f5e6fdcd6f5e8e 100644 (file)
@@ -1698,7 +1698,6 @@ static struct platform_driver axienet_driver = {
        .probe = axienet_probe,
        .remove = axienet_remove,
        .driver = {
-                .owner = THIS_MODULE,
                 .name = "xilinx_axienet",
                 .of_match_table = axienet_of_match,
        },