The patch titled spi-imx: use platform_driver_probe as probe lives in .init.text has been added to the -mm tree. Its filename is spi-imx-use-platform_driver_probe-as-probe-lives-in-inittext.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: spi-imx: use platform_driver_probe as probe lives in .init.text From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Using platform_driver_register with a probe function defined using __init is wrong. This fixes an oops after: cd /sys/bus/platform/drivers/spi_imx echo -n spi_imx.0 > unbind echo -n spi_imx.0 > bind Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Cc: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Cc: Daniel Mack <daniel@xxxxxxxx> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Cc: Grant Likely <grant.likely@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/spi/spi_imx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/spi/spi_imx.c~spi-imx-use-platform_driver_probe-as-probe-lives-in-inittext drivers/spi/spi_imx.c --- a/drivers/spi/spi_imx.c~spi-imx-use-platform_driver_probe-as-probe-lives-in-inittext +++ a/drivers/spi/spi_imx.c @@ -666,13 +666,12 @@ static struct platform_driver spi_imx_dr .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) _ Patches currently in -mm which might be from u.kleine-koenig@xxxxxxxxxxxxxx are origin.patch linux-next.patch sysfs-deprecated-features-are-to-help-old-tools-not-to-confuse-them.patch hrtimer-correct-a-few-numbers-in-comments.patch clockevents-ensure-taht-min_delta_ns-is-increased-in-error-path.patch mxcmmc-fix-error-path-in-mxcmci_probe.patch spi-drain-mxc-spi-transfer-buffer-when-probing-device.patch spi-imx-use-platform_driver_probe-as-probe-lives-in-inittext.patch spi-imx-correct-check-for-platform_get_irq-failing.patch spi-imx-use-positive-logic-to-distinguish-cpu-variants.patch spi-imx-add-mx25-support.patch spi-imx-dont-access-struct-device-directly-but-use-dev_get_platdata.patch rtc-add-freescale-mc13783-rtc-driver.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html