gpio: remove redundant owner assignments of drivers
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 23 May 2016 01:49:10 +0000 (10:49 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jun 2016 07:35:16 +0000 (09:35 +0200)
A platform_driver need not set an owner since it will be populated
by platform_driver_register().
Likewise for mcb_driver (gpio-menz127.c).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 files changed:
drivers/gpio/gpio-menz127.c
drivers/gpio/gpio-palmas.c
drivers/gpio/gpio-rdc321x.c
drivers/gpio/gpio-sch311x.c
drivers/gpio/gpio-stmpe.c
drivers/gpio/gpio-tc3589x.c
drivers/gpio/gpio-tps6586x.c
drivers/gpio/gpio-tps65910.c
drivers/gpio/gpio-viperboard.c
drivers/gpio/gpio-wm831x.c
drivers/gpio/gpio-wm8350.c
drivers/gpio/gpio-wm8994.c

index cc103aff45e45fc4d76faa2137770b0742730d0e..a1210e33057120668d50129447e5af540366d16b 100644 (file)
@@ -187,7 +187,6 @@ MODULE_DEVICE_TABLE(mcb, men_z127_ids);
 static struct mcb_driver men_z127_driver = {
        .driver = {
                .name = "z127-gpio",
-               .owner = THIS_MODULE,
        },
        .probe = men_z127_probe,
        .remove = men_z127_remove,
index e248707ca39ecbc45d0e92854039cd12692e74b4..8394744302299f404c25cf8154f7a0b34543ed4c 100644 (file)
@@ -208,7 +208,6 @@ static int palmas_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver palmas_gpio_driver = {
        .driver.name    = "palmas-gpio",
-       .driver.owner   = THIS_MODULE,
        .driver.of_match_table = of_palmas_gpio_match,
        .probe          = palmas_gpio_probe,
 };
index ec945b90f54deea96fef88b65ff1945d0480056e..cbf0f9e6465b15a979fa2d1b159478955b8d7461 100644 (file)
@@ -200,7 +200,6 @@ static int rdc321x_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver rdc321x_gpio_driver = {
        .driver.name    = "rdc321x-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = rdc321x_gpio_probe,
 };
 
index a03b38ee2e02e3dafedebac0f3deee7ac57d500d..b96990c262a1ea66f3391648f0b2ca278a52b3f2 100644 (file)
@@ -296,7 +296,6 @@ static int sch311x_gpio_remove(struct platform_device *pdev)
 
 static struct platform_driver sch311x_gpio_driver = {
        .driver.name    = DRV_NAME,
-       .driver.owner   = THIS_MODULE,
        .probe          = sch311x_gpio_probe,
        .remove         = sch311x_gpio_remove,
 };
index 8480bd72661f86380f4e2e2983a34cf09966f1d0..f675132de10ee7cd69bc4ad9d9fe0f2df5b7e3fb 100644 (file)
@@ -433,7 +433,6 @@ static struct platform_driver stmpe_gpio_driver = {
        .driver = {
                .suppress_bind_attrs    = true,
                .name                   = "stmpe-gpio",
-               .owner                  = THIS_MODULE,
        },
        .probe          = stmpe_gpio_probe,
 };
index 2e35ed3abbcfd35b59e0f10d9590aa1dc950712f..8b3659352e495b02843187b75679406469a06611 100644 (file)
@@ -343,7 +343,6 @@ static int tc3589x_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver tc3589x_gpio_driver = {
        .driver.name    = "tc3589x-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = tc3589x_gpio_probe,
 };
 
index 6b15e68a314fa96d92e0d0500b9a0c2e7fcc410c..042b9a20781af42fcda8d5b5a6832afbdcfc31b5 100644 (file)
@@ -131,7 +131,6 @@ static int tps6586x_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver tps6586x_gpio_driver = {
        .driver.name    = "tps6586x-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = tps6586x_gpio_probe,
 };
 
index 0ae6a5a54ea8c374ab228de91eca70e54a2e6ccf..e63d7dabf78b1e61482cc5716b69640efa5d9c9c 100644 (file)
@@ -184,7 +184,6 @@ skip_init:
 
 static struct platform_driver tps65910_gpio_driver = {
        .driver.name    = "tps65910-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = tps65910_gpio_probe,
 };
 
index dec47aafd5cda0d9ed78ed96c1de23f0e17642f5..e6d1328dddfaf4a4ed161d9545f9e754607707c8 100644 (file)
@@ -440,7 +440,6 @@ static int vprbrd_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver vprbrd_gpio_driver = {
        .driver.name    = "viperboard-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = vprbrd_gpio_probe,
 };
 
index 41ec7834059a7b36b8bdb9cb5874a4eeeca87f0e..21f97bcd0062c2fccfccae1971d1bce1b15352a6 100644 (file)
@@ -296,7 +296,6 @@ static int wm831x_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver wm831x_gpio_driver = {
        .driver.name    = "wm831x-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = wm831x_gpio_probe,
 };
 
index 07d45a3b205aeb4aba91c1fa9bb83df6f26eec67..e9765707d5c1f255c159300cbc2e456508eb37e3 100644 (file)
@@ -139,7 +139,6 @@ static int wm8350_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver wm8350_gpio_driver = {
        .driver.name    = "wm8350-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = wm8350_gpio_probe,
 };
 
index 744af388c949c3662ba0cec61e15dae35627e78f..2457aac8592e7c7f1fd73d6300944281b9715313 100644 (file)
@@ -299,7 +299,6 @@ static int wm8994_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver wm8994_gpio_driver = {
        .driver.name    = "wm8994-gpio",
-       .driver.owner   = THIS_MODULE,
        .probe          = wm8994_gpio_probe,
 };