diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-10-08 16:35:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-09 07:09:57 -0400 |
commit | 1d82d0c2682ec88a84aaae40c830bddf6ab09482 (patch) | |
tree | 161b9040b2ca63d4d125872a6c923ad0f98e165a | |
parent | 93e9c900102aa2e9b10ec4758b441c8b6e53daf3 (diff) |
spi: spi-txx9: 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-txx9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c index 7c6d15766c72..c67a1b866f4f 100644 --- a/drivers/spi/spi-txx9.c +++ b/drivers/spi/spi-txx9.c | |||
@@ -440,6 +440,7 @@ static int txx9spi_remove(struct platform_device *dev) | |||
440 | MODULE_ALIAS("platform:spi_txx9"); | 440 | MODULE_ALIAS("platform:spi_txx9"); |
441 | 441 | ||
442 | static struct platform_driver txx9spi_driver = { | 442 | static struct platform_driver txx9spi_driver = { |
443 | .probe = txx9spi_probe, | ||
443 | .remove = txx9spi_remove, | 444 | .remove = txx9spi_remove, |
444 | .driver = { | 445 | .driver = { |
445 | .name = "spi_txx9", | 446 | .name = "spi_txx9", |
@@ -449,7 +450,7 @@ static struct platform_driver txx9spi_driver = { | |||
449 | 450 | ||
450 | static int __init txx9spi_init(void) | 451 | static int __init txx9spi_init(void) |
451 | { | 452 | { |
452 | return platform_driver_probe(&txx9spi_driver, txx9spi_probe); | 453 | return platform_driver_register(&txx9spi_driver); |
453 | } | 454 | } |
454 | subsys_initcall(txx9spi_init); | 455 | subsys_initcall(txx9spi_init); |
455 | 456 | ||