]> git.karo-electronics.de Git - linux-beck.git/commit
mmc: omap: Fix broken reg_shift initialization
authorTony Lindgren <tony@atomide.com>
Wed, 6 Jun 2012 13:47:49 +0000 (09:47 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 6 Jun 2012 13:47:49 +0000 (09:47 -0400)
commitebbe6f889f36d35f4d1757ba2ecc0af6150bf12b
tree4edcf5315201974fee476dd2fb4d864aa84c244f
parent3caf41406dd67b412abae7df86cc2a09bef9621f
mmc: omap: Fix broken reg_shift initialization

Commit fa550189 (mmc: core: Prevent eMMC VCC supply to be cut from late init)
slightly affected timings for how things are done for the omap MMC driver
causing the MMC cards not getting detected any longer.

Turns out this was caused by buggy reg_shift initialization in the omap
MMC driver that was happening after mmc_add_host() was being called.

Fix this by initializing reg_shift before mmc_add_host() is called.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap.c