OSDN Git Service

i2c: muxes: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:38 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:38 +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/i2c/muxes/i2c-arb-gpio-challenge.c
drivers/i2c/muxes/i2c-mux-gpio.c
drivers/i2c/muxes/i2c-mux-pinctrl.c

index 69afffa..5cf1b60 100644 (file)
@@ -235,7 +235,6 @@ static struct platform_driver i2c_arbitrator_driver = {
        .probe  = i2c_arbitrator_probe,
        .remove = i2c_arbitrator_remove,
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "i2c-arb-gpio-challenge",
                .of_match_table = i2c_arbitrator_of_match,
        },
index d8989c8..f5798eb 100644 (file)
@@ -280,7 +280,6 @@ static struct platform_driver i2c_mux_gpio_driver = {
        .probe  = i2c_mux_gpio_probe,
        .remove = i2c_mux_gpio_remove,
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "i2c-mux-gpio",
                .of_match_table = i2c_mux_gpio_of_match,
        },
index 4ff0ef3..b48378c 100644 (file)
@@ -264,7 +264,6 @@ MODULE_DEVICE_TABLE(of, i2c_mux_pinctrl_of_match);
 static struct platform_driver i2c_mux_pinctrl_driver = {
        .driver = {
                .name   = "i2c-mux-pinctrl",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(i2c_mux_pinctrl_of_match),
        },
        .probe  = i2c_mux_pinctrl_probe,