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>
Fri, 6 Apr 2012 00:32:29 +0000 (20:32 -0400)
commitefa25fd3a33275861aa74ff03a512423873a8805
tree840162161412b57a3bf03c03bcf32ff6f132335b
parent927ce944aebdcac0fa757d4e6448a6972184db8c
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