]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pltfm: remove the unneeded check of disabled device
authorKevin Hao <haokexin@gmail.com>
Wed, 4 Feb 2015 06:33:53 +0000 (14:33 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Mar 2015 13:13:44 +0000 (14:13 +0100)
commit6b6ea3c85a8088ba2165b627e301b2d9c38fd8ab
tree17514bfb493d4e10e6f517a2998fdc1bcb1aceec
parent52f1f0e71f3f878411b1449aeb68ca6bdd085989
mmc: sdhci-pltfm: remove the unneeded check of disabled device

Since commit 4a7c23ad4e4e ("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>
drivers/mmc/host/sdhci-pltfm.c