]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
tty: serial: uartlite: Remove .owner field for driver
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 11:43:16 +0000 (13:43 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 12:12:42 +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/tty/serial/uartlite.c

index 723a6b79cd14f9ba9370c52e8794003fd52b9443..6e8c0a25092ad22ac1297d35f3292e297c0e8aa5 100644 (file)
@@ -668,7 +668,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),
        },