]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: fix sdhci-dove probe/removal
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Mon, 29 Oct 2012 21:43:07 +0000 (21:43 +0000)
committerChris Ball <cjb@laptop.org>
Mon, 29 Oct 2012 22:19:50 +0000 (18:19 -0400)
commitbd40cb400a7bce043aee72db34954054797d232a
tree739b74cb795824bffb0f6e54f05df7069183ba3f
parentc8f796e159f04324e98f6da30e1b192df2cd642c
mmc: fix sdhci-dove probe/removal

1. Never ever publish a device in the system before it has been setup
   to a usable state.
2. Unregister the device _BEFORE_ taking away any resources it may be
   using.
3. Don't check clks against NULL.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-dove.c