From: Andreas Fenkart Date: Tue, 7 Jul 2015 18:38:43 +0000 (+0200) Subject: mmc: omap_hsmmc: call omap_hsmmc_set_power directly X-Git-Tag: omap-for-v4.3/fixes-rc1~60^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7f0f03506d00fc2939a8625ed141c2dda568fad;p=pandora-kernel.git mmc: omap_hsmmc: call omap_hsmmc_set_power directly If no pdata.set_power was set by the platform code, the driver was updating pdata with its own fallback function. This is a no-no since pdata shall be read-only. This patch pushes the check 'pdata->set_power != NULL' down into the fallback functions. If pdata.set_power is really set, it calls them and exits, otherwise the fallback code is used. Signed-off-by: Andreas Fenkart Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed