diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-10-08 16:35:38 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-09 07:07:32 -0400 |
commit | db9371b853e7cebce93f0775215ef297b8d0bf93 (patch) | |
tree | a043ecad74d0c177e490527033f5c32d7087cef4 | |
parent | 557667f643888e55c92243ff2af961c9fe052ce4 (diff) |
spi: spi-bfin5xx: replace platform_driver_probe to support deferred probing
Subsystems like pinctrl and gpio rightfully make use of deferred probing at
core level. Now, deferred drivers won't be retried if they don't have a .probe
function specified in the driver struct. Fix this driver to have that, so the
devices it supports won't get lost in a deferred probe.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/spi/spi-bfin5xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c index 1e2894315bb0..5284f158d4e6 100644 --- a/drivers/spi/spi-bfin5xx.c +++ b/drivers/spi/spi-bfin5xx.c | |||
@@ -1464,12 +1464,13 @@ static struct platform_driver bfin_spi_driver = { | |||
1464 | .owner = THIS_MODULE, | 1464 | .owner = THIS_MODULE, |
1465 | .pm = BFIN_SPI_PM_OPS, | 1465 | .pm = BFIN_SPI_PM_OPS, |
1466 | }, | 1466 | }, |
1467 | .probe = bfin_spi_probe, | ||
1467 | .remove = bfin_spi_remove, | 1468 | .remove = bfin_spi_remove, |
1468 | }; | 1469 | }; |
1469 | 1470 | ||
1470 | static int __init bfin_spi_init(void) | 1471 | static int __init bfin_spi_init(void) |
1471 | { | 1472 | { |
1472 | return platform_driver_probe(&bfin_spi_driver, bfin_spi_probe); | 1473 | return platform_driver_register(&bfin_spi_driver); |
1473 | } | 1474 | } |
1474 | subsys_initcall(bfin_spi_init); | 1475 | subsys_initcall(bfin_spi_init); |
1475 | 1476 | ||