]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mmc/omap: make mmci-omap using platform_driver_probe
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 2 Apr 2009 17:47:41 +0000 (19:47 +0200)
committerPierre Ossman <pierre@ossman.eu>
Sat, 13 Jun 2009 20:42:57 +0000 (22:42 +0200)
commit7ceeb6a40a4dcc9b9cded6127ad5cdddb79b40ad
treeecd7f0907b2bf5ccf2f282c9297334e1c1b56060
parent5cf20aa557e8f9dd5af302b8f33972082479753a
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 <u.kleine-koenig@pengutronix.de>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/omap.c