]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: omap_hsmmc: make it behave well as a module
authorFelipe Balbi <balbi@ti.com>
Wed, 14 Mar 2012 09:18:28 +0000 (11:18 +0200)
committerChris Ball <cjb@laptop.org>
Mon, 2 Apr 2012 09:47:42 +0000 (05:47 -0400)
commit665417e786257e9b5e487e0883f17a1b7e2fd739
treeb74208734440354eb63372125273cdcb0085079c
parent0d96279bf6242d8f1e31135f5980206b531917d2
mmc: omap_hsmmc: make it behave well as a module

If we put probe() on __init section, that will never work for multiple
module insertions/removals.

In order to make it work properly, move probe to __devinit section and
use platform_driver_register() instead of platform_driver_probe().

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c