Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: spi-au1550: 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>

authored by

Wolfram Sang and committed by
Mark Brown
75dab1bf d0e639c9

+2 -1
+2 -1
drivers/spi/spi-au1550.c
··· 985 985 MODULE_ALIAS("platform:au1550-spi"); 986 986 987 987 static struct platform_driver au1550_spi_drv = { 988 + .probe = au1550_spi_probe, 988 989 .remove = au1550_spi_remove, 989 990 .driver = { 990 991 .name = "au1550-spi", ··· 1005 1004 printk(KERN_ERR "au1550-spi: cannot add memory" 1006 1005 "dbdma device\n"); 1007 1006 } 1008 - return platform_driver_probe(&au1550_spi_drv, au1550_spi_probe); 1007 + return platform_driver_register(&au1550_spi_drv); 1009 1008 } 1010 1009 module_init(au1550_spi_init); 1011 1010