mmc: sdhci-pltfm: remove the unneeded check of disabled device

Since commit cd1e65044d ("of/device: Don't register disabled
devices"), the disabled device will not be registered at all. So
we don't need to do the check again in the platform device driver.

And the check in the current code is useless even if we really
run into a disabled device. In this case, it just doesn't parse
the dtb for the infos such as quirks or clock, but it will continue
to try to init the disabled device after that check. So just remove it.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Kevin Hao 2015-02-04 14:33:53 +08:00 committed by Ulf Hansson
parent 01df7ecd90
commit 5ec358201e
1 changed files with 26 additions and 28 deletions

View File

@ -75,7 +75,6 @@ void sdhci_get_of_property(struct platform_device *pdev)
u32 bus_width;
int size;
if (of_device_is_available(np)) {
if (of_get_property(np, "sdhci,auto-cmd12", NULL))
host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12;
@ -111,7 +110,6 @@ void sdhci_get_of_property(struct platform_device *pdev)
if (of_find_property(np, "enable-sdio-wakeup", NULL))
host->mmc->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
}
}
#else
void sdhci_get_of_property(struct platform_device *pdev) {}