Drop global data sdhc_adapter for powerpc
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 17 Jun 2020 10:08:57 +0000 (18:08 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 27 Jul 2020 08:46:28 +0000 (14:16 +0530)
The sdhc_adapter of global data has not been used, and we
do not have to use it as global data even we may need it
in the future.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/include/asm/global_data.h
drivers/mmc/fsl_esdhc.c

index 1620fba0143419baf8703bad874375cde2fd357b..192a02d347e706991a5cd8bc72dcba8544bcbd32 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2002-2010
+ * Copyright 2020 NXP
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
@@ -15,9 +16,6 @@ struct arch_global_data {
 #if defined(CONFIG_FSL_ESDHC)
        u32 sdhc_clk;
        u32 sdhc_per_clk;
-#if defined(CONFIG_FSL_ESDHC_ADAPTER_IDENT)
-       u8 sdhc_adapter;
-#endif
 #endif
 #if defined(CONFIG_MPC8xx)
        unsigned long brg_clk;
index f6e0d43057e1c67cd9798938a970ff269a91959b..ba10540d04892616796f06f1336c78c943ecf4a0 100644 (file)
@@ -678,7 +678,6 @@ void mmc_adapter_card_type_ident(void)
        u8 value;
 
        card_id = QIXIS_READ(present) & QIXIS_SDID_MASK;
-       gd->arch.sdhc_adapter = card_id;
 
        switch (card_id) {
        case QIXIS_ESDHC_ADAPTER_TYPE_EMMC45: