From: Uwe Kleine-König Date: Thu, 2 Apr 2009 17:47:41 +0000 (+0200) Subject: mmc/omap: make mmci-omap using platform_driver_probe X-Git-Tag: v2.6.31-rc1~340^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ceeb6a40a4dcc9b9cded6127ad5cdddb79b40ad;p=pandora-kernel.git mmc/omap: make mmci-omap using platform_driver_probe A pointer to mmc_omap_probe which lives in .init.text is passed to the core via platform_driver_register and so the kernel might oops if probe is called after the init code is discarded. As requested by David Brownell platform_driver_probe is used instead of moving the probe function to .devinit.text. This saves some memory, but might have the downside that a device being registered after the call to mmc_omap_init but before the init sections are discarded will not be bound anymore to the driver. Signed-off-by: Uwe Kleine-König Acked-by: David Brownell Signed-off-by: Pierre Ossman --- Reading git-diff-tree failed