]> git.baikalelectronics.ru Git - kernel.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>
Fri, 6 Apr 2012 00:32:29 +0000 (20:32 -0400)
commita56c745202d89d651a2acdd317f54d241cd34a91
tree840162161412b57a3bf03c03bcf32ff6f132335b
parent6770a9603f02c74063684021d6fe09cd35205057
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