diff options
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/mpc52xx_psc_spi.c | 4 | ||||
-rw-r--r-- | drivers/spi/mpc52xx_spi.c | 8 | ||||
-rw-r--r-- | drivers/spi/spi_mpc8xxx.c | 7 | ||||
-rw-r--r-- | drivers/spi/spi_ppc4xx.c | 2 | ||||
-rw-r--r-- | drivers/spi/xilinx_spi_of.c | 2 |
5 files changed, 13 insertions, 10 deletions
diff --git a/drivers/spi/mpc52xx_psc_spi.c b/drivers/spi/mpc52xx_psc_spi.c index 7fcf28405860..7104cb739da7 100644 --- a/drivers/spi/mpc52xx_psc_spi.c +++ b/drivers/spi/mpc52xx_psc_spi.c | |||
@@ -514,14 +514,12 @@ static const struct of_device_id mpc52xx_psc_spi_of_match[] = { | |||
514 | MODULE_DEVICE_TABLE(of, mpc52xx_psc_spi_of_match); | 514 | MODULE_DEVICE_TABLE(of, mpc52xx_psc_spi_of_match); |
515 | 515 | ||
516 | static struct of_platform_driver mpc52xx_psc_spi_of_driver = { | 516 | static struct of_platform_driver mpc52xx_psc_spi_of_driver = { |
517 | .owner = THIS_MODULE, | ||
518 | .name = "mpc52xx-psc-spi", | ||
519 | .match_table = mpc52xx_psc_spi_of_match, | ||
520 | .probe = mpc52xx_psc_spi_of_probe, | 517 | .probe = mpc52xx_psc_spi_of_probe, |
521 | .remove = __exit_p(mpc52xx_psc_spi_of_remove), | 518 | .remove = __exit_p(mpc52xx_psc_spi_of_remove), |
522 | .driver = { | 519 | .driver = { |
523 | .name = "mpc52xx-psc-spi", | 520 | .name = "mpc52xx-psc-spi", |
524 | .owner = THIS_MODULE, | 521 | .owner = THIS_MODULE, |
522 | .of_match_table = mpc52xx_psc_spi_of_match, | ||
525 | }, | 523 | }, |
526 | }; | 524 | }; |
527 | 525 | ||
diff --git a/drivers/spi/mpc52xx_spi.c b/drivers/spi/mpc52xx_spi.c index 6573233bf7c9..b1a76bff775f 100644 --- a/drivers/spi/mpc52xx_spi.c +++ b/drivers/spi/mpc52xx_spi.c | |||
@@ -558,9 +558,11 @@ static const struct of_device_id mpc52xx_spi_match[] __devinitconst = { | |||
558 | MODULE_DEVICE_TABLE(of, mpc52xx_spi_match); | 558 | MODULE_DEVICE_TABLE(of, mpc52xx_spi_match); |
559 | 559 | ||
560 | static struct of_platform_driver mpc52xx_spi_of_driver = { | 560 | static struct of_platform_driver mpc52xx_spi_of_driver = { |
561 | .owner = THIS_MODULE, | 561 | .driver = { |
562 | .name = "mpc52xx-spi", | 562 | .name = "mpc52xx-spi", |
563 | .match_table = mpc52xx_spi_match, | 563 | .owner = THIS_MODULE, |
564 | .of_match_table = mpc52xx_spi_match, | ||
565 | }, | ||
564 | .probe = mpc52xx_spi_probe, | 566 | .probe = mpc52xx_spi_probe, |
565 | .remove = __exit_p(mpc52xx_spi_remove), | 567 | .remove = __exit_p(mpc52xx_spi_remove), |
566 | }; | 568 | }; |
diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c index 7572f98a419e..77ab15e330d0 100644 --- a/drivers/spi/spi_mpc8xxx.c +++ b/drivers/spi/spi_mpc8xxx.c | |||
@@ -1312,8 +1312,11 @@ static const struct of_device_id of_mpc8xxx_spi_match[] = { | |||
1312 | MODULE_DEVICE_TABLE(of, of_mpc8xxx_spi_match); | 1312 | MODULE_DEVICE_TABLE(of, of_mpc8xxx_spi_match); |
1313 | 1313 | ||
1314 | static struct of_platform_driver of_mpc8xxx_spi_driver = { | 1314 | static struct of_platform_driver of_mpc8xxx_spi_driver = { |
1315 | .name = "mpc8xxx_spi", | 1315 | .driver = { |
1316 | .match_table = of_mpc8xxx_spi_match, | 1316 | .name = "mpc8xxx_spi", |
1317 | .owner = THIS_MODULE, | ||
1318 | .of_match_table = of_mpc8xxx_spi_match, | ||
1319 | }, | ||
1317 | .probe = of_mpc8xxx_spi_probe, | 1320 | .probe = of_mpc8xxx_spi_probe, |
1318 | .remove = __devexit_p(of_mpc8xxx_spi_remove), | 1321 | .remove = __devexit_p(of_mpc8xxx_spi_remove), |
1319 | }; | 1322 | }; |
diff --git a/drivers/spi/spi_ppc4xx.c b/drivers/spi/spi_ppc4xx.c index 7cb5ff37f6e2..19c0b3b34fce 100644 --- a/drivers/spi/spi_ppc4xx.c +++ b/drivers/spi/spi_ppc4xx.c | |||
@@ -587,12 +587,12 @@ static const struct of_device_id spi_ppc4xx_of_match[] = { | |||
587 | MODULE_DEVICE_TABLE(of, spi_ppc4xx_of_match); | 587 | MODULE_DEVICE_TABLE(of, spi_ppc4xx_of_match); |
588 | 588 | ||
589 | static struct of_platform_driver spi_ppc4xx_of_driver = { | 589 | static struct of_platform_driver spi_ppc4xx_of_driver = { |
590 | .match_table = spi_ppc4xx_of_match, | ||
591 | .probe = spi_ppc4xx_of_probe, | 590 | .probe = spi_ppc4xx_of_probe, |
592 | .remove = __exit_p(spi_ppc4xx_of_remove), | 591 | .remove = __exit_p(spi_ppc4xx_of_remove), |
593 | .driver = { | 592 | .driver = { |
594 | .name = DRIVER_NAME, | 593 | .name = DRIVER_NAME, |
595 | .owner = THIS_MODULE, | 594 | .owner = THIS_MODULE, |
595 | .of_match_table = spi_ppc4xx_of_match, | ||
596 | }, | 596 | }, |
597 | }; | 597 | }; |
598 | 598 | ||
diff --git a/drivers/spi/xilinx_spi_of.c b/drivers/spi/xilinx_spi_of.c index 748d33a76d29..55c58012a028 100644 --- a/drivers/spi/xilinx_spi_of.c +++ b/drivers/spi/xilinx_spi_of.c | |||
@@ -109,12 +109,12 @@ static const struct of_device_id xilinx_spi_of_match[] = { | |||
109 | MODULE_DEVICE_TABLE(of, xilinx_spi_of_match); | 109 | MODULE_DEVICE_TABLE(of, xilinx_spi_of_match); |
110 | 110 | ||
111 | static struct of_platform_driver xilinx_spi_of_driver = { | 111 | static struct of_platform_driver xilinx_spi_of_driver = { |
112 | .match_table = xilinx_spi_of_match, | ||
113 | .probe = xilinx_spi_of_probe, | 112 | .probe = xilinx_spi_of_probe, |
114 | .remove = __exit_p(xilinx_spi_of_remove), | 113 | .remove = __exit_p(xilinx_spi_of_remove), |
115 | .driver = { | 114 | .driver = { |
116 | .name = "xilinx-xps-spi", | 115 | .name = "xilinx-xps-spi", |
117 | .owner = THIS_MODULE, | 116 | .owner = THIS_MODULE, |
117 | .of_match_table = xilinx_spi_of_match, | ||
118 | }, | 118 | }, |
119 | }; | 119 | }; |
120 | 120 | ||