tty: serial: uartlite: Remove .owner field for driver
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 11:53:43 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:09:13 +0000 (16:09 -0700)
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>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c

index 9fc22f40796ec4b7f71f12bcea4d69c0247696a4..189f52e3111ff71feef99741f1ad52e680c42f4b 100644 (file)
@@ -665,7 +665,6 @@ static struct platform_driver ulite_platform_driver = {
        .probe = ulite_probe,
        .remove = ulite_remove,
        .driver = {
-               .owner = THIS_MODULE,
                .name  = "uartlite",
                .of_match_table = of_match_ptr(ulite_of_match),
        },