summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-10-08 22:35:41 +0200
committerMark Brown <broonie@linaro.org>2013-10-09 12:09:57 +0100
commit1d82d0c2682ec88a84aaae40c830bddf6ab09482 (patch)
tree161b9040b2ca63d4d125872a6c923ad0f98e165a /drivers/spi
parent93e9c900102aa2e9b10ec4758b441c8b6e53daf3 (diff)
downloadop-kernel-dev-1d82d0c2682ec88a84aaae40c830bddf6ab09482.zip
op-kernel-dev-1d82d0c2682ec88a84aaae40c830bddf6ab09482.tar.gz
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-txx9.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c
index 7c6d157..c67a1b8 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)
MODULE_ALIAS("platform:spi_txx9");
static struct platform_driver txx9spi_driver = {
+ .probe = txx9spi_probe,
.remove = txx9spi_remove,
.driver = {
.name = "spi_txx9",
@@ -449,7 +450,7 @@ static struct platform_driver txx9spi_driver = {
static int __init txx9spi_init(void)
{
- return platform_driver_probe(&txx9spi_driver, txx9spi_probe);
+ return platform_driver_register(&txx9spi_driver);
}
subsys_initcall(txx9spi_init);
OpenPOWER on IntegriCloud