Commit db9371b8 authored by Wolfram Sang's avatar Wolfram Sang Committed by Mark Brown

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: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 557667f6
...@@ -1464,12 +1464,13 @@ static struct platform_driver bfin_spi_driver = { ...@@ -1464,12 +1464,13 @@ static struct platform_driver bfin_spi_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = BFIN_SPI_PM_OPS, .pm = BFIN_SPI_PM_OPS,
}, },
.probe = bfin_spi_probe,
.remove = bfin_spi_remove, .remove = bfin_spi_remove,
}; };
static int __init bfin_spi_init(void) static int __init bfin_spi_init(void)
{ {
return platform_driver_probe(&bfin_spi_driver, bfin_spi_probe); return platform_driver_register(&bfin_spi_driver);
} }
subsys_initcall(bfin_spi_init); subsys_initcall(bfin_spi_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment