diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:21:36 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:21:36 -0400 |
commit | 14ac00e033c57983032993d3b7b3f70b16a9fdbd (patch) | |
tree | 761a4ad70eecc669e2ff2aef21701fc7bc4e267f | |
parent | 72c6293340bb2fea5ced8fdecc7d765fd6828731 (diff) |
spi: drop owner assignment from platform_drivers
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>
52 files changed, 0 insertions, 53 deletions
diff --git a/drivers/spi/spi-adi-v3.c b/drivers/spi/spi-adi-v3.c index 19ea8fb78cc7..a16b25dcd1e6 100644 --- a/drivers/spi/spi-adi-v3.c +++ b/drivers/spi/spi-adi-v3.c | |||
@@ -972,7 +972,6 @@ MODULE_ALIAS("platform:adi-spi3"); | |||
972 | static struct platform_driver adi_spi_driver = { | 972 | static struct platform_driver adi_spi_driver = { |
973 | .driver = { | 973 | .driver = { |
974 | .name = "adi-spi3", | 974 | .name = "adi-spi3", |
975 | .owner = THIS_MODULE, | ||
976 | .pm = &adi_spi_pm_ops, | 975 | .pm = &adi_spi_pm_ops, |
977 | }, | 976 | }, |
978 | .remove = adi_spi_remove, | 977 | .remove = adi_spi_remove, |
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index 5b5709a5c957..b95010e72452 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c | |||
@@ -282,7 +282,6 @@ static struct platform_driver altera_spi_driver = { | |||
282 | .remove = altera_spi_remove, | 282 | .remove = altera_spi_remove, |
283 | .driver = { | 283 | .driver = { |
284 | .name = DRV_NAME, | 284 | .name = DRV_NAME, |
285 | .owner = THIS_MODULE, | ||
286 | .pm = NULL, | 285 | .pm = NULL, |
287 | .of_match_table = of_match_ptr(altera_spi_match), | 286 | .of_match_table = of_match_ptr(altera_spi_match), |
288 | }, | 287 | }, |
diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index 058db0fe8dc7..b02eb4ac0218 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c | |||
@@ -307,7 +307,6 @@ static struct platform_driver ath79_spi_driver = { | |||
307 | .shutdown = ath79_spi_shutdown, | 307 | .shutdown = ath79_spi_shutdown, |
308 | .driver = { | 308 | .driver = { |
309 | .name = DRV_NAME, | 309 | .name = DRV_NAME, |
310 | .owner = THIS_MODULE, | ||
311 | }, | 310 | }, |
312 | }; | 311 | }; |
313 | module_platform_driver(ath79_spi_driver); | 312 | module_platform_driver(ath79_spi_driver); |
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 113c83f44b5c..5b8a84e81734 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c | |||
@@ -1493,7 +1493,6 @@ MODULE_DEVICE_TABLE(of, atmel_spi_dt_ids); | |||
1493 | static struct platform_driver atmel_spi_driver = { | 1493 | static struct platform_driver atmel_spi_driver = { |
1494 | .driver = { | 1494 | .driver = { |
1495 | .name = "atmel_spi", | 1495 | .name = "atmel_spi", |
1496 | .owner = THIS_MODULE, | ||
1497 | .pm = ATMEL_SPI_PM_OPS, | 1496 | .pm = ATMEL_SPI_PM_OPS, |
1498 | .of_match_table = of_match_ptr(atmel_spi_dt_ids), | 1497 | .of_match_table = of_match_ptr(atmel_spi_dt_ids), |
1499 | }, | 1498 | }, |
diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c index f40b34cdf2fc..326f47973684 100644 --- a/drivers/spi/spi-au1550.c +++ b/drivers/spi/spi-au1550.c | |||
@@ -965,7 +965,6 @@ static struct platform_driver au1550_spi_drv = { | |||
965 | .remove = au1550_spi_remove, | 965 | .remove = au1550_spi_remove, |
966 | .driver = { | 966 | .driver = { |
967 | .name = "au1550-spi", | 967 | .name = "au1550-spi", |
968 | .owner = THIS_MODULE, | ||
969 | }, | 968 | }, |
970 | }; | 969 | }; |
971 | 970 | ||
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index 69167456ec1e..98aab457b24d 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c | |||
@@ -395,7 +395,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_spi_match); | |||
395 | static struct platform_driver bcm2835_spi_driver = { | 395 | static struct platform_driver bcm2835_spi_driver = { |
396 | .driver = { | 396 | .driver = { |
397 | .name = DRV_NAME, | 397 | .name = DRV_NAME, |
398 | .owner = THIS_MODULE, | ||
399 | .of_match_table = bcm2835_spi_match, | 398 | .of_match_table = bcm2835_spi_match, |
400 | }, | 399 | }, |
401 | .probe = bcm2835_spi_probe, | 400 | .probe = bcm2835_spi_probe, |
diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 86f5a98aa7a2..f5ca6dc3a157 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c | |||
@@ -459,7 +459,6 @@ static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend, | |||
459 | static struct platform_driver bcm63xx_hsspi_driver = { | 459 | static struct platform_driver bcm63xx_hsspi_driver = { |
460 | .driver = { | 460 | .driver = { |
461 | .name = "bcm63xx-hsspi", | 461 | .name = "bcm63xx-hsspi", |
462 | .owner = THIS_MODULE, | ||
463 | .pm = &bcm63xx_hsspi_pm_ops, | 462 | .pm = &bcm63xx_hsspi_pm_ops, |
464 | }, | 463 | }, |
465 | .probe = bcm63xx_hsspi_probe, | 464 | .probe = bcm63xx_hsspi_probe, |
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 8510400e7867..c20530982e26 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -469,7 +469,6 @@ static const struct dev_pm_ops bcm63xx_spi_pm_ops = { | |||
469 | static struct platform_driver bcm63xx_spi_driver = { | 469 | static struct platform_driver bcm63xx_spi_driver = { |
470 | .driver = { | 470 | .driver = { |
471 | .name = "bcm63xx-spi", | 471 | .name = "bcm63xx-spi", |
472 | .owner = THIS_MODULE, | ||
473 | .pm = &bcm63xx_spi_pm_ops, | 472 | .pm = &bcm63xx_spi_pm_ops, |
474 | }, | 473 | }, |
475 | .probe = bcm63xx_spi_probe, | 474 | .probe = bcm63xx_spi_probe, |
diff --git a/drivers/spi/spi-bfin-sport.c b/drivers/spi/spi-bfin-sport.c index f515c5e9db57..a78693189f45 100644 --- a/drivers/spi/spi-bfin-sport.c +++ b/drivers/spi/spi-bfin-sport.c | |||
@@ -921,7 +921,6 @@ static SIMPLE_DEV_PM_OPS(bfin_sport_spi_pm_ops, bfin_sport_spi_suspend, | |||
921 | static struct platform_driver bfin_sport_spi_driver = { | 921 | static struct platform_driver bfin_sport_spi_driver = { |
922 | .driver = { | 922 | .driver = { |
923 | .name = DRV_NAME, | 923 | .name = DRV_NAME, |
924 | .owner = THIS_MODULE, | ||
925 | .pm = BFIN_SPORT_SPI_PM_OPS, | 924 | .pm = BFIN_SPORT_SPI_PM_OPS, |
926 | }, | 925 | }, |
927 | .probe = bfin_sport_spi_probe, | 926 | .probe = bfin_sport_spi_probe, |
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c index ebf720b88a2a..37079937d2f7 100644 --- a/drivers/spi/spi-bfin5xx.c +++ b/drivers/spi/spi-bfin5xx.c | |||
@@ -1455,7 +1455,6 @@ MODULE_ALIAS("platform:bfin-spi"); | |||
1455 | static struct platform_driver bfin_spi_driver = { | 1455 | static struct platform_driver bfin_spi_driver = { |
1456 | .driver = { | 1456 | .driver = { |
1457 | .name = DRV_NAME, | 1457 | .name = DRV_NAME, |
1458 | .owner = THIS_MODULE, | ||
1459 | .pm = BFIN_SPI_PM_OPS, | 1458 | .pm = BFIN_SPI_PM_OPS, |
1460 | }, | 1459 | }, |
1461 | .probe = bfin_spi_probe, | 1460 | .probe = bfin_spi_probe, |
diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c index 181cf2262006..8c30de0315e7 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c | |||
@@ -203,7 +203,6 @@ err_out: | |||
203 | static struct platform_driver clps711x_spi_driver = { | 203 | static struct platform_driver clps711x_spi_driver = { |
204 | .driver = { | 204 | .driver = { |
205 | .name = DRIVER_NAME, | 205 | .name = DRIVER_NAME, |
206 | .owner = THIS_MODULE, | ||
207 | }, | 206 | }, |
208 | .probe = spi_clps711x_probe, | 207 | .probe = spi_clps711x_probe, |
209 | }; | 208 | }; |
diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index 63700ab7bd9f..b3707badb1e5 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c | |||
@@ -1119,7 +1119,6 @@ static int davinci_spi_remove(struct platform_device *pdev) | |||
1119 | static struct platform_driver davinci_spi_driver = { | 1119 | static struct platform_driver davinci_spi_driver = { |
1120 | .driver = { | 1120 | .driver = { |
1121 | .name = "spi_davinci", | 1121 | .name = "spi_davinci", |
1122 | .owner = THIS_MODULE, | ||
1123 | .of_match_table = of_match_ptr(davinci_spi_of_match), | 1122 | .of_match_table = of_match_ptr(davinci_spi_of_match), |
1124 | }, | 1123 | }, |
1125 | .probe = davinci_spi_probe, | 1124 | .probe = davinci_spi_probe, |
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index 21ce0e36fa00..eb03e1215195 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b/drivers/spi/spi-dw-mmio.c | |||
@@ -135,7 +135,6 @@ static struct platform_driver dw_spi_mmio_driver = { | |||
135 | .remove = dw_spi_mmio_remove, | 135 | .remove = dw_spi_mmio_remove, |
136 | .driver = { | 136 | .driver = { |
137 | .name = DRIVER_NAME, | 137 | .name = DRIVER_NAME, |
138 | .owner = THIS_MODULE, | ||
139 | .of_match_table = dw_spi_mmio_of_match, | 138 | .of_match_table = dw_spi_mmio_of_match, |
140 | }, | 139 | }, |
141 | }; | 140 | }; |
diff --git a/drivers/spi/spi-efm32.c b/drivers/spi/spi-efm32.c index 6caeb1cac0f3..065fe8744989 100644 --- a/drivers/spi/spi-efm32.c +++ b/drivers/spi/spi-efm32.c | |||
@@ -494,7 +494,6 @@ static struct platform_driver efm32_spi_driver = { | |||
494 | 494 | ||
495 | .driver = { | 495 | .driver = { |
496 | .name = DRIVER_NAME, | 496 | .name = DRIVER_NAME, |
497 | .owner = THIS_MODULE, | ||
498 | .of_match_table = efm32_spi_dt_ids, | 497 | .of_match_table = efm32_spi_dt_ids, |
499 | }, | 498 | }, |
500 | }; | 499 | }; |
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c index bf9728773247..bb00be8d1851 100644 --- a/drivers/spi/spi-ep93xx.c +++ b/drivers/spi/spi-ep93xx.c | |||
@@ -964,7 +964,6 @@ static int ep93xx_spi_remove(struct platform_device *pdev) | |||
964 | static struct platform_driver ep93xx_spi_driver = { | 964 | static struct platform_driver ep93xx_spi_driver = { |
965 | .driver = { | 965 | .driver = { |
966 | .name = "ep93xx-spi", | 966 | .name = "ep93xx-spi", |
967 | .owner = THIS_MODULE, | ||
968 | }, | 967 | }, |
969 | .probe = ep93xx_spi_probe, | 968 | .probe = ep93xx_spi_probe, |
970 | .remove = ep93xx_spi_remove, | 969 | .remove = ep93xx_spi_remove, |
diff --git a/drivers/spi/spi-falcon.c b/drivers/spi/spi-falcon.c index f73b3004d6d3..912b9037e9cf 100644 --- a/drivers/spi/spi-falcon.c +++ b/drivers/spi/spi-falcon.c | |||
@@ -441,7 +441,6 @@ static struct platform_driver falcon_sflash_driver = { | |||
441 | .probe = falcon_sflash_probe, | 441 | .probe = falcon_sflash_probe, |
442 | .driver = { | 442 | .driver = { |
443 | .name = DRV_NAME, | 443 | .name = DRV_NAME, |
444 | .owner = THIS_MODULE, | ||
445 | .of_match_table = falcon_sflash_match, | 444 | .of_match_table = falcon_sflash_match, |
446 | } | 445 | } |
447 | }; | 446 | }; |
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index a7f94b6a9e70..cff2ebd97463 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c | |||
@@ -827,7 +827,6 @@ MODULE_DEVICE_TABLE(of, of_fsl_espi_match); | |||
827 | static struct platform_driver fsl_espi_driver = { | 827 | static struct platform_driver fsl_espi_driver = { |
828 | .driver = { | 828 | .driver = { |
829 | .name = "fsl_espi", | 829 | .name = "fsl_espi", |
830 | .owner = THIS_MODULE, | ||
831 | .of_match_table = of_fsl_espi_match, | 830 | .of_match_table = of_fsl_espi_match, |
832 | .pm = &espi_pm, | 831 | .pm = &espi_pm, |
833 | }, | 832 | }, |
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index ed792880c9d6..048f4577e5aa 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c | |||
@@ -882,7 +882,6 @@ static int of_fsl_spi_remove(struct platform_device *ofdev) | |||
882 | static struct platform_driver of_fsl_spi_driver = { | 882 | static struct platform_driver of_fsl_spi_driver = { |
883 | .driver = { | 883 | .driver = { |
884 | .name = "fsl_spi", | 884 | .name = "fsl_spi", |
885 | .owner = THIS_MODULE, | ||
886 | .of_match_table = of_fsl_spi_match, | 885 | .of_match_table = of_fsl_spi_match, |
887 | }, | 886 | }, |
888 | .probe = of_fsl_spi_probe, | 887 | .probe = of_fsl_spi_probe, |
@@ -929,7 +928,6 @@ static struct platform_driver mpc8xxx_spi_driver = { | |||
929 | .remove = plat_mpc8xxx_spi_remove, | 928 | .remove = plat_mpc8xxx_spi_remove, |
930 | .driver = { | 929 | .driver = { |
931 | .name = "mpc8xxx_spi", | 930 | .name = "mpc8xxx_spi", |
932 | .owner = THIS_MODULE, | ||
933 | }, | 931 | }, |
934 | }; | 932 | }; |
935 | 933 | ||
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 9f595535cf27..4a00b7c15b05 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c | |||
@@ -524,7 +524,6 @@ MODULE_ALIAS("platform:" DRIVER_NAME); | |||
524 | static struct platform_driver spi_gpio_driver = { | 524 | static struct platform_driver spi_gpio_driver = { |
525 | .driver = { | 525 | .driver = { |
526 | .name = DRIVER_NAME, | 526 | .name = DRIVER_NAME, |
527 | .owner = THIS_MODULE, | ||
528 | .of_match_table = of_match_ptr(spi_gpio_dt_ids), | 527 | .of_match_table = of_match_ptr(spi_gpio_dt_ids), |
529 | }, | 528 | }, |
530 | .probe = spi_gpio_probe, | 529 | .probe = spi_gpio_probe, |
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 3637847b5370..961b97d43b43 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c | |||
@@ -1231,7 +1231,6 @@ static int spi_imx_remove(struct platform_device *pdev) | |||
1231 | static struct platform_driver spi_imx_driver = { | 1231 | static struct platform_driver spi_imx_driver = { |
1232 | .driver = { | 1232 | .driver = { |
1233 | .name = DRIVER_NAME, | 1233 | .name = DRIVER_NAME, |
1234 | .owner = THIS_MODULE, | ||
1235 | .of_match_table = spi_imx_dt_ids, | 1234 | .of_match_table = spi_imx_dt_ids, |
1236 | }, | 1235 | }, |
1237 | .id_table = spi_imx_devtype, | 1236 | .id_table = spi_imx_devtype, |
diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi-mpc512x-psc.c index 577d23a12763..ecae0d4e2945 100644 --- a/drivers/spi/spi-mpc512x-psc.c +++ b/drivers/spi/spi-mpc512x-psc.c | |||
@@ -600,7 +600,6 @@ static struct platform_driver mpc512x_psc_spi_of_driver = { | |||
600 | .remove = mpc512x_psc_spi_of_remove, | 600 | .remove = mpc512x_psc_spi_of_remove, |
601 | .driver = { | 601 | .driver = { |
602 | .name = "mpc512x-psc-spi", | 602 | .name = "mpc512x-psc-spi", |
603 | .owner = THIS_MODULE, | ||
604 | .of_match_table = mpc512x_psc_spi_of_match, | 603 | .of_match_table = mpc512x_psc_spi_of_match, |
605 | }, | 604 | }, |
606 | }; | 605 | }; |
diff --git a/drivers/spi/spi-mpc52xx-psc.c b/drivers/spi/spi-mpc52xx-psc.c index de532aa11d34..72d11ebefb28 100644 --- a/drivers/spi/spi-mpc52xx-psc.c +++ b/drivers/spi/spi-mpc52xx-psc.c | |||
@@ -508,7 +508,6 @@ static struct platform_driver mpc52xx_psc_spi_of_driver = { | |||
508 | .remove = mpc52xx_psc_spi_of_remove, | 508 | .remove = mpc52xx_psc_spi_of_remove, |
509 | .driver = { | 509 | .driver = { |
510 | .name = "mpc52xx-psc-spi", | 510 | .name = "mpc52xx-psc-spi", |
511 | .owner = THIS_MODULE, | ||
512 | .of_match_table = mpc52xx_psc_spi_of_match, | 511 | .of_match_table = mpc52xx_psc_spi_of_match, |
513 | }, | 512 | }, |
514 | }; | 513 | }; |
diff --git a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c index b07db4b62d80..c36002110c30 100644 --- a/drivers/spi/spi-mpc52xx.c +++ b/drivers/spi/spi-mpc52xx.c | |||
@@ -543,7 +543,6 @@ MODULE_DEVICE_TABLE(of, mpc52xx_spi_match); | |||
543 | static struct platform_driver mpc52xx_spi_of_driver = { | 543 | static struct platform_driver mpc52xx_spi_of_driver = { |
544 | .driver = { | 544 | .driver = { |
545 | .name = "mpc52xx-spi", | 545 | .name = "mpc52xx-spi", |
546 | .owner = THIS_MODULE, | ||
547 | .of_match_table = mpc52xx_spi_match, | 546 | .of_match_table = mpc52xx_spi_match, |
548 | }, | 547 | }, |
549 | .probe = mpc52xx_spi_probe, | 548 | .probe = mpc52xx_spi_probe, |
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index 51460878af04..11de3191f819 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c | |||
@@ -572,7 +572,6 @@ static struct platform_driver mxs_spi_driver = { | |||
572 | .remove = mxs_spi_remove, | 572 | .remove = mxs_spi_remove, |
573 | .driver = { | 573 | .driver = { |
574 | .name = DRIVER_NAME, | 574 | .name = DRIVER_NAME, |
575 | .owner = THIS_MODULE, | ||
576 | .of_match_table = mxs_spi_dt_ids, | 575 | .of_match_table = mxs_spi_dt_ids, |
577 | }, | 576 | }, |
578 | }; | 577 | }; |
diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index 73e91d5a43df..f51a058e7678 100644 --- a/drivers/spi/spi-nuc900.c +++ b/drivers/spi/spi-nuc900.c | |||
@@ -423,7 +423,6 @@ static struct platform_driver nuc900_spi_driver = { | |||
423 | .remove = nuc900_spi_remove, | 423 | .remove = nuc900_spi_remove, |
424 | .driver = { | 424 | .driver = { |
425 | .name = "nuc900-spi", | 425 | .name = "nuc900-spi", |
426 | .owner = THIS_MODULE, | ||
427 | }, | 426 | }, |
428 | }; | 427 | }; |
429 | module_platform_driver(nuc900_spi_driver); | 428 | module_platform_driver(nuc900_spi_driver); |
diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c index 8998d11c7238..76656a77ec12 100644 --- a/drivers/spi/spi-oc-tiny.c +++ b/drivers/spi/spi-oc-tiny.c | |||
@@ -351,7 +351,6 @@ static struct platform_driver tiny_spi_driver = { | |||
351 | .remove = tiny_spi_remove, | 351 | .remove = tiny_spi_remove, |
352 | .driver = { | 352 | .driver = { |
353 | .name = DRV_NAME, | 353 | .name = DRV_NAME, |
354 | .owner = THIS_MODULE, | ||
355 | .pm = NULL, | 354 | .pm = NULL, |
356 | .of_match_table = of_match_ptr(tiny_spi_match), | 355 | .of_match_table = of_match_ptr(tiny_spi_match), |
357 | }, | 356 | }, |
diff --git a/drivers/spi/spi-octeon.c b/drivers/spi/spi-octeon.c index c5e2f718eebd..b283d537d16a 100644 --- a/drivers/spi/spi-octeon.c +++ b/drivers/spi/spi-octeon.c | |||
@@ -247,7 +247,6 @@ MODULE_DEVICE_TABLE(of, octeon_spi_match); | |||
247 | static struct platform_driver octeon_spi_driver = { | 247 | static struct platform_driver octeon_spi_driver = { |
248 | .driver = { | 248 | .driver = { |
249 | .name = "spi-octeon", | 249 | .name = "spi-octeon", |
250 | .owner = THIS_MODULE, | ||
251 | .of_match_table = octeon_spi_match, | 250 | .of_match_table = octeon_spi_match, |
252 | }, | 251 | }, |
253 | .probe = octeon_spi_probe, | 252 | .probe = octeon_spi_probe, |
diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c index fb522765ce5a..79399ae9c84c 100644 --- a/drivers/spi/spi-omap-100k.c +++ b/drivers/spi/spi-omap-100k.c | |||
@@ -453,7 +453,6 @@ err: | |||
453 | static struct platform_driver omap1_spi100k_driver = { | 453 | static struct platform_driver omap1_spi100k_driver = { |
454 | .driver = { | 454 | .driver = { |
455 | .name = "omap1_spi100k", | 455 | .name = "omap1_spi100k", |
456 | .owner = THIS_MODULE, | ||
457 | }, | 456 | }, |
458 | .probe = omap1_spi100k_probe, | 457 | .probe = omap1_spi100k_probe, |
459 | }; | 458 | }; |
diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c index 8bca90a19dd1..daf1ada5cd11 100644 --- a/drivers/spi/spi-omap-uwire.c +++ b/drivers/spi/spi-omap-uwire.c | |||
@@ -527,7 +527,6 @@ MODULE_ALIAS("platform:omap_uwire"); | |||
527 | static struct platform_driver uwire_driver = { | 527 | static struct platform_driver uwire_driver = { |
528 | .driver = { | 528 | .driver = { |
529 | .name = "omap_uwire", | 529 | .name = "omap_uwire", |
530 | .owner = THIS_MODULE, | ||
531 | }, | 530 | }, |
532 | .probe = uwire_probe, | 531 | .probe = uwire_probe, |
533 | .remove = uwire_remove, | 532 | .remove = uwire_remove, |
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 352eed7463ac..3bc3cbabbbc0 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
@@ -1521,7 +1521,6 @@ static const struct dev_pm_ops omap2_mcspi_pm_ops = { | |||
1521 | static struct platform_driver omap2_mcspi_driver = { | 1521 | static struct platform_driver omap2_mcspi_driver = { |
1522 | .driver = { | 1522 | .driver = { |
1523 | .name = "omap2_mcspi", | 1523 | .name = "omap2_mcspi", |
1524 | .owner = THIS_MODULE, | ||
1525 | .pm = &omap2_mcspi_pm_ops, | 1524 | .pm = &omap2_mcspi_pm_ops, |
1526 | .of_match_table = omap_mcspi_of_match, | 1525 | .of_match_table = omap_mcspi_of_match, |
1527 | }, | 1526 | }, |
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index 835cdda6f4f5..f6d2188cef84 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c | |||
@@ -551,7 +551,6 @@ static const struct dev_pm_ops orion_spi_pm_ops = { | |||
551 | static struct platform_driver orion_spi_driver = { | 551 | static struct platform_driver orion_spi_driver = { |
552 | .driver = { | 552 | .driver = { |
553 | .name = DRIVER_NAME, | 553 | .name = DRIVER_NAME, |
554 | .owner = THIS_MODULE, | ||
555 | .pm = &orion_spi_pm_ops, | 554 | .pm = &orion_spi_pm_ops, |
556 | .of_match_table = of_match_ptr(orion_spi_of_match_table), | 555 | .of_match_table = of_match_ptr(orion_spi_of_match_table), |
557 | }, | 556 | }, |
diff --git a/drivers/spi/spi-ppc4xx.c b/drivers/spi/spi-ppc4xx.c index 80b8408ac3e3..54fb984a3e17 100644 --- a/drivers/spi/spi-ppc4xx.c +++ b/drivers/spi/spi-ppc4xx.c | |||
@@ -575,7 +575,6 @@ static struct platform_driver spi_ppc4xx_of_driver = { | |||
575 | .remove = spi_ppc4xx_of_remove, | 575 | .remove = spi_ppc4xx_of_remove, |
576 | .driver = { | 576 | .driver = { |
577 | .name = DRIVER_NAME, | 577 | .name = DRIVER_NAME, |
578 | .owner = THIS_MODULE, | ||
579 | .of_match_table = spi_ppc4xx_of_match, | 578 | .of_match_table = spi_ppc4xx_of_match, |
580 | }, | 579 | }, |
581 | }; | 580 | }; |
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index d8a105f76837..00850f83aeba 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c | |||
@@ -1331,7 +1331,6 @@ static const struct dev_pm_ops pxa2xx_spi_pm_ops = { | |||
1331 | static struct platform_driver driver = { | 1331 | static struct platform_driver driver = { |
1332 | .driver = { | 1332 | .driver = { |
1333 | .name = "pxa2xx-spi", | 1333 | .name = "pxa2xx-spi", |
1334 | .owner = THIS_MODULE, | ||
1335 | .pm = &pxa2xx_spi_pm_ops, | 1334 | .pm = &pxa2xx_spi_pm_ops, |
1336 | .acpi_match_table = ACPI_PTR(pxa2xx_spi_acpi_match), | 1335 | .acpi_match_table = ACPI_PTR(pxa2xx_spi_acpi_match), |
1337 | }, | 1336 | }, |
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 9f83d2950748..390ed712eeed 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c | |||
@@ -756,7 +756,6 @@ static const struct dev_pm_ops spi_qup_dev_pm_ops = { | |||
756 | static struct platform_driver spi_qup_driver = { | 756 | static struct platform_driver spi_qup_driver = { |
757 | .driver = { | 757 | .driver = { |
758 | .name = "spi_qup", | 758 | .name = "spi_qup", |
759 | .owner = THIS_MODULE, | ||
760 | .pm = &spi_qup_dev_pm_ops, | 759 | .pm = &spi_qup_dev_pm_ops, |
761 | .of_match_table = spi_qup_dt_match, | 760 | .of_match_table = spi_qup_dt_match, |
762 | }, | 761 | }, |
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index f96ea8a38d64..7d90c9963093 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c | |||
@@ -822,7 +822,6 @@ MODULE_DEVICE_TABLE(of, rockchip_spi_dt_match); | |||
822 | static struct platform_driver rockchip_spi_driver = { | 822 | static struct platform_driver rockchip_spi_driver = { |
823 | .driver = { | 823 | .driver = { |
824 | .name = DRIVER_NAME, | 824 | .name = DRIVER_NAME, |
825 | .owner = THIS_MODULE, | ||
826 | .pm = &rockchip_spi_pm, | 825 | .pm = &rockchip_spi_pm, |
827 | .of_match_table = of_match_ptr(rockchip_spi_dt_match), | 826 | .of_match_table = of_match_ptr(rockchip_spi_dt_match), |
828 | }, | 827 | }, |
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 54bb0faec155..2071f788c6fb 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c | |||
@@ -1211,7 +1211,6 @@ static struct platform_driver rspi_driver = { | |||
1211 | .id_table = spi_driver_ids, | 1211 | .id_table = spi_driver_ids, |
1212 | .driver = { | 1212 | .driver = { |
1213 | .name = "renesas_spi", | 1213 | .name = "renesas_spi", |
1214 | .owner = THIS_MODULE, | ||
1215 | .of_match_table = of_match_ptr(rspi_of_match), | 1214 | .of_match_table = of_match_ptr(rspi_of_match), |
1216 | }, | 1215 | }, |
1217 | }; | 1216 | }; |
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index e713737d784f..f747ca269986 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c | |||
@@ -663,7 +663,6 @@ static struct platform_driver s3c24xx_spi_driver = { | |||
663 | .remove = s3c24xx_spi_remove, | 663 | .remove = s3c24xx_spi_remove, |
664 | .driver = { | 664 | .driver = { |
665 | .name = "s3c2410-spi", | 665 | .name = "s3c2410-spi", |
666 | .owner = THIS_MODULE, | ||
667 | .pm = S3C24XX_SPI_PMOPS, | 666 | .pm = S3C24XX_SPI_PMOPS, |
668 | }, | 667 | }, |
669 | }; | 668 | }; |
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 480133ee1eb3..4392b44c7889 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
@@ -1381,7 +1381,6 @@ MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); | |||
1381 | static struct platform_driver s3c64xx_spi_driver = { | 1381 | static struct platform_driver s3c64xx_spi_driver = { |
1382 | .driver = { | 1382 | .driver = { |
1383 | .name = "s3c64xx-spi", | 1383 | .name = "s3c64xx-spi", |
1384 | .owner = THIS_MODULE, | ||
1385 | .pm = &s3c64xx_spi_pm, | 1384 | .pm = &s3c64xx_spi_pm, |
1386 | .of_match_table = of_match_ptr(s3c64xx_spi_dt_match), | 1385 | .of_match_table = of_match_ptr(s3c64xx_spi_dt_match), |
1387 | }, | 1386 | }, |
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c index 94b5faed21e2..fc29233d0650 100644 --- a/drivers/spi/spi-sh-hspi.c +++ b/drivers/spi/spi-sh-hspi.c | |||
@@ -315,7 +315,6 @@ static struct platform_driver hspi_driver = { | |||
315 | .remove = hspi_remove, | 315 | .remove = hspi_remove, |
316 | .driver = { | 316 | .driver = { |
317 | .name = "sh-hspi", | 317 | .name = "sh-hspi", |
318 | .owner = THIS_MODULE, | ||
319 | .of_match_table = hspi_of_match, | 318 | .of_match_table = hspi_of_match, |
320 | }, | 319 | }, |
321 | }; | 320 | }; |
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 3f365402fcc0..239be7cbe5a8 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c | |||
@@ -1235,7 +1235,6 @@ static struct platform_driver sh_msiof_spi_drv = { | |||
1235 | .id_table = spi_driver_ids, | 1235 | .id_table = spi_driver_ids, |
1236 | .driver = { | 1236 | .driver = { |
1237 | .name = "spi_sh_msiof", | 1237 | .name = "spi_sh_msiof", |
1238 | .owner = THIS_MODULE, | ||
1239 | .of_match_table = of_match_ptr(sh_msiof_match), | 1238 | .of_match_table = of_match_ptr(sh_msiof_match), |
1240 | }, | 1239 | }, |
1241 | }; | 1240 | }; |
diff --git a/drivers/spi/spi-sh-sci.c b/drivers/spi/spi-sh-sci.c index b83dd733684c..a9beeeed812c 100644 --- a/drivers/spi/spi-sh-sci.c +++ b/drivers/spi/spi-sh-sci.c | |||
@@ -187,7 +187,6 @@ static struct platform_driver sh_sci_spi_drv = { | |||
187 | .remove = sh_sci_spi_remove, | 187 | .remove = sh_sci_spi_remove, |
188 | .driver = { | 188 | .driver = { |
189 | .name = "spi_sh_sci", | 189 | .name = "spi_sh_sci", |
190 | .owner = THIS_MODULE, | ||
191 | }, | 190 | }, |
192 | }; | 191 | }; |
193 | module_platform_driver(sh_sci_spi_drv); | 192 | module_platform_driver(sh_sci_spi_drv); |
diff --git a/drivers/spi/spi-sh.c b/drivers/spi/spi-sh.c index 8e171a76049f..1cfc906dd174 100644 --- a/drivers/spi/spi-sh.c +++ b/drivers/spi/spi-sh.c | |||
@@ -532,7 +532,6 @@ static struct platform_driver spi_sh_driver = { | |||
532 | .remove = spi_sh_remove, | 532 | .remove = spi_sh_remove, |
533 | .driver = { | 533 | .driver = { |
534 | .name = "sh_spi", | 534 | .name = "sh_spi", |
535 | .owner = THIS_MODULE, | ||
536 | }, | 535 | }, |
537 | }; | 536 | }; |
538 | module_platform_driver(spi_sh_driver); | 537 | module_platform_driver(spi_sh_driver); |
diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c index 39e2c0a55a28..515184cfba4e 100644 --- a/drivers/spi/spi-sirf.c +++ b/drivers/spi/spi-sirf.c | |||
@@ -820,7 +820,6 @@ MODULE_DEVICE_TABLE(of, spi_sirfsoc_of_match); | |||
820 | static struct platform_driver spi_sirfsoc_driver = { | 820 | static struct platform_driver spi_sirfsoc_driver = { |
821 | .driver = { | 821 | .driver = { |
822 | .name = DRIVER_NAME, | 822 | .name = DRIVER_NAME, |
823 | .owner = THIS_MODULE, | ||
824 | .pm = &spi_sirfsoc_pm_ops, | 823 | .pm = &spi_sirfsoc_pm_ops, |
825 | .of_match_table = spi_sirfsoc_of_match, | 824 | .of_match_table = spi_sirfsoc_of_match, |
826 | }, | 825 | }, |
diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index 85204c93f3d3..fbb0a4d74e91 100644 --- a/drivers/spi/spi-sun4i.c +++ b/drivers/spi/spi-sun4i.c | |||
@@ -464,7 +464,6 @@ static struct platform_driver sun4i_spi_driver = { | |||
464 | .remove = sun4i_spi_remove, | 464 | .remove = sun4i_spi_remove, |
465 | .driver = { | 465 | .driver = { |
466 | .name = "sun4i-spi", | 466 | .name = "sun4i-spi", |
467 | .owner = THIS_MODULE, | ||
468 | .of_match_table = sun4i_spi_match, | 467 | .of_match_table = sun4i_spi_match, |
469 | .pm = &sun4i_spi_pm_ops, | 468 | .pm = &sun4i_spi_pm_ops, |
470 | }, | 469 | }, |
diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c index bd24093f4038..ac48f59705a8 100644 --- a/drivers/spi/spi-sun6i.c +++ b/drivers/spi/spi-sun6i.c | |||
@@ -470,7 +470,6 @@ static struct platform_driver sun6i_spi_driver = { | |||
470 | .remove = sun6i_spi_remove, | 470 | .remove = sun6i_spi_remove, |
471 | .driver = { | 471 | .driver = { |
472 | .name = "sun6i-spi", | 472 | .name = "sun6i-spi", |
473 | .owner = THIS_MODULE, | ||
474 | .of_match_table = sun6i_spi_match, | 473 | .of_match_table = sun6i_spi_match, |
475 | .pm = &sun6i_spi_pm_ops, | 474 | .pm = &sun6i_spi_pm_ops, |
476 | }, | 475 | }, |
diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index 795bcbc0131b..73779cecc3bb 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c | |||
@@ -1223,7 +1223,6 @@ static const struct dev_pm_ops tegra_spi_pm_ops = { | |||
1223 | static struct platform_driver tegra_spi_driver = { | 1223 | static struct platform_driver tegra_spi_driver = { |
1224 | .driver = { | 1224 | .driver = { |
1225 | .name = "spi-tegra114", | 1225 | .name = "spi-tegra114", |
1226 | .owner = THIS_MODULE, | ||
1227 | .pm = &tegra_spi_pm_ops, | 1226 | .pm = &tegra_spi_pm_ops, |
1228 | .of_match_table = tegra_spi_of_match, | 1227 | .of_match_table = tegra_spi_of_match, |
1229 | }, | 1228 | }, |
diff --git a/drivers/spi/spi-tegra20-sflash.c b/drivers/spi/spi-tegra20-sflash.c index cd66fe7b78a9..b6558bb6f9df 100644 --- a/drivers/spi/spi-tegra20-sflash.c +++ b/drivers/spi/spi-tegra20-sflash.c | |||
@@ -608,7 +608,6 @@ static const struct dev_pm_ops slink_pm_ops = { | |||
608 | static struct platform_driver tegra_sflash_driver = { | 608 | static struct platform_driver tegra_sflash_driver = { |
609 | .driver = { | 609 | .driver = { |
610 | .name = "spi-tegra-sflash", | 610 | .name = "spi-tegra-sflash", |
611 | .owner = THIS_MODULE, | ||
612 | .pm = &slink_pm_ops, | 611 | .pm = &slink_pm_ops, |
613 | .of_match_table = tegra_sflash_of_match, | 612 | .of_match_table = tegra_sflash_of_match, |
614 | }, | 613 | }, |
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 0b9e32e9f493..85c91f58b42f 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c | |||
@@ -1224,7 +1224,6 @@ static const struct dev_pm_ops slink_pm_ops = { | |||
1224 | static struct platform_driver tegra_slink_driver = { | 1224 | static struct platform_driver tegra_slink_driver = { |
1225 | .driver = { | 1225 | .driver = { |
1226 | .name = "spi-tegra-slink", | 1226 | .name = "spi-tegra-slink", |
1227 | .owner = THIS_MODULE, | ||
1228 | .pm = &slink_pm_ops, | 1227 | .pm = &slink_pm_ops, |
1229 | .of_match_table = tegra_slink_of_match, | 1228 | .of_match_table = tegra_slink_of_match, |
1230 | }, | 1229 | }, |
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 6c211d1910b0..6146c4cd6583 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c | |||
@@ -567,7 +567,6 @@ static struct platform_driver ti_qspi_driver = { | |||
567 | .remove = ti_qspi_remove, | 567 | .remove = ti_qspi_remove, |
568 | .driver = { | 568 | .driver = { |
569 | .name = "ti-qspi", | 569 | .name = "ti-qspi", |
570 | .owner = THIS_MODULE, | ||
571 | .pm = &ti_qspi_pm_ops, | 570 | .pm = &ti_qspi_pm_ops, |
572 | .of_match_table = ti_qspi_match, | 571 | .of_match_table = ti_qspi_match, |
573 | } | 572 | } |
diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index 0a87ec39f619..be692ad50442 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c | |||
@@ -1561,7 +1561,6 @@ static int pch_spi_pd_resume(struct platform_device *pd_dev) | |||
1561 | static struct platform_driver pch_spi_pd_driver = { | 1561 | static struct platform_driver pch_spi_pd_driver = { |
1562 | .driver = { | 1562 | .driver = { |
1563 | .name = "pch-spi", | 1563 | .name = "pch-spi", |
1564 | .owner = THIS_MODULE, | ||
1565 | }, | 1564 | }, |
1566 | .probe = pch_spi_pd_probe, | 1565 | .probe = pch_spi_pd_probe, |
1567 | .remove = pch_spi_pd_remove, | 1566 | .remove = pch_spi_pd_remove, |
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c index 2501a8373e89..0da7c67f5db4 100644 --- a/drivers/spi/spi-txx9.c +++ b/drivers/spi/spi-txx9.c | |||
@@ -426,7 +426,6 @@ static struct platform_driver txx9spi_driver = { | |||
426 | .remove = txx9spi_remove, | 426 | .remove = txx9spi_remove, |
427 | .driver = { | 427 | .driver = { |
428 | .name = "spi_txx9", | 428 | .name = "spi_txx9", |
429 | .owner = THIS_MODULE, | ||
430 | }, | 429 | }, |
431 | }; | 430 | }; |
432 | 431 | ||
diff --git a/drivers/spi/spi-xtensa-xtfpga.c b/drivers/spi/spi-xtensa-xtfpga.c index 0dc5df5233a9..2e32ea2f194f 100644 --- a/drivers/spi/spi-xtensa-xtfpga.c +++ b/drivers/spi/spi-xtensa-xtfpga.c | |||
@@ -160,7 +160,6 @@ static struct platform_driver xtfpga_spi_driver = { | |||
160 | .remove = xtfpga_spi_remove, | 160 | .remove = xtfpga_spi_remove, |
161 | .driver = { | 161 | .driver = { |
162 | .name = XTFPGA_SPI_NAME, | 162 | .name = XTFPGA_SPI_NAME, |
163 | .owner = THIS_MODULE, | ||
164 | .of_match_table = of_match_ptr(xtfpga_spi_of_match), | 163 | .of_match_table = of_match_ptr(xtfpga_spi_of_match), |
165 | }, | 164 | }, |
166 | }; | 165 | }; |