From: Ulf Hansson Date: Thu, 24 Oct 2013 15:53:15 +0000 (+0200) Subject: mmc: tmio: Restructure ->set_ios() and adapt ->probe() to it X-Git-Tag: fixes-against-v3.18-rc2~127^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b292bb0e99018c448e0f5a26c29c68113a1b7bf;p=pandora-kernel.git mmc: tmio: Restructure ->set_ios() and adapt ->probe() to it An internal power state machine were beeing used to keep ->probe() and ->set_ios() in sync. Especially for handling specific scenarios while using CONFIG_MMC_CLKGATE. Moreover dependency to CONFIG_MMC_CLKGATE existed to handle runtime PM properly, which we moves away from here. By removing the state machine and instead make ->set_ios() rely on the information provided through the function's in-parameters, the code becomes significantly simplier. Additonally as a part of this rework we prepares for making the runtime PM callbacks responsible of clock gating. Signed-off-by: Ulf Hansson Acked-by: Geert Uytterhoeven --- Reading git-diff-tree failed