[1/5] spi-imx: use platform_driver_probe as probe lives in .init.text
diff mbox

Message ID 1260306850-14945-1-git-send-email-u.kleine-koenig@pengutronix.de
State Rejected
Headers show

Commit Message

Uwe Kleine-K├Ânig Dec. 8, 2009, 9:14 p.m. UTC
None

Patch
diff mbox

diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 1b17f44..c83ca05 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -666,13 +666,12 @@  static struct platform_driver spi_imx_driver = {
 		   .name = DRIVER_NAME,
 		   .owner = THIS_MODULE,
 		   },
-	.probe = spi_imx_probe,
 	.remove = __exit_p(spi_imx_remove),
 };
 
 static int __init spi_imx_init(void)
 {
-	return platform_driver_register(&spi_imx_driver);
+	return platform_driver_probe(&spi_imx_driver, spi_imx_probe);
 }
 
 static void __exit spi_imx_exit(void)