mmc: meson-gx: remove meson_mmc_get_cd
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 12 Feb 2023 21:43:32 +0000 (22:43 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 15 Feb 2023 12:24:03 +0000 (13:24 +0100)
commit91a3cba783f11c09b11476e64f432b39c933d7e8
treeec2cae22e505ac666127c2028e982ce393e8484f
parent16b492ce0a55735ed6f4c19ee9fb767badb3f19a
mmc: meson-gx: remove meson_mmc_get_cd

MMC core only checks whether return value of .get_cd() equals zero.
Therefore -ENOSYS and 1 are effectively the same and the function
can be removed.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/16502040-3beb-a3cc-b28d-28184fba0f10@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c