tty: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:44 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:44 +0000 (16:21 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/tty/amiserial.c
drivers/tty/ehv_bytechan.c

index 979e7c3..d9f85f9 100644 (file)
@@ -1802,7 +1802,6 @@ static struct platform_driver amiga_serial_driver = {
        .remove = __exit_p(amiga_serial_remove),
        .driver   = {
                .name   = "amiga-serial",
-               .owner  = THIS_MODULE,
        },
 };
 
index 4f485e8..ffe08e1 100644 (file)
@@ -740,7 +740,6 @@ static const struct of_device_id ehv_bc_tty_of_ids[] = {
 
 static struct platform_driver ehv_bc_tty_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "ehv-bc",
                .of_match_table = ehv_bc_tty_of_ids,
        },