OSDN Git Service

media: rc: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:51 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:51 +0000 (16:20 +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/media/rc/gpio-ir-recv.c
drivers/media/rc/sunxi-cir.c

index 5985308..229853d 100644 (file)
@@ -240,7 +240,6 @@ static struct platform_driver gpio_ir_recv_driver = {
        .remove = gpio_ir_recv_remove,
        .driver = {
                .name   = GPIO_IR_DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(gpio_ir_recv_of_match),
 #ifdef CONFIG_PM
                .pm     = &gpio_ir_recv_pm_ops,
index bcee8e1..340f7f5 100644 (file)
@@ -306,7 +306,6 @@ static struct platform_driver sunxi_ir_driver = {
        .remove         = sunxi_ir_remove,
        .driver = {
                .name = SUNXI_IR_DEV,
-               .owner = THIS_MODULE,
                .of_match_table = sunxi_ir_match,
        },
 };