aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/tifm_sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/tifm_sd.c')
-rw-r--r--drivers/mmc/tifm_sd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/tifm_sd.c b/drivers/mmc/tifm_sd.c
index 8905b129e4e1..4388ee9062a0 100644
--- a/drivers/mmc/tifm_sd.c
+++ b/drivers/mmc/tifm_sd.c
@@ -948,7 +948,7 @@ static int tifm_sd_resume(struct tifm_dev *sock)
948 struct mmc_host *mmc = tifm_get_drvdata(sock); 948 struct mmc_host *mmc = tifm_get_drvdata(sock);
949 struct tifm_sd *host = mmc_priv(mmc); 949 struct tifm_sd *host = mmc_priv(mmc);
950 950
951 if (sock->media_id != FM_SD 951 if (sock->type != TIFM_TYPE_SD
952 || tifm_sd_initialize_host(host)) { 952 || tifm_sd_initialize_host(host)) {
953 tifm_eject(sock); 953 tifm_eject(sock);
954 return 0; 954 return 0;
@@ -964,8 +964,8 @@ static int tifm_sd_resume(struct tifm_dev *sock)
964 964
965#endif /* CONFIG_PM */ 965#endif /* CONFIG_PM */
966 966
967static tifm_media_id tifm_sd_id_tbl[] = { 967static struct tifm_device_id tifm_sd_id_tbl[] = {
968 FM_SD, 0 968 { TIFM_TYPE_SD }, { }
969}; 969};
970 970
971static struct tifm_driver tifm_sd_driver = { 971static struct tifm_driver tifm_sd_driver = {