From: Christian Lütke-Stetzkamp Date: Wed, 4 Apr 2018 20:15:28 +0000 (+0200) Subject: staging: mt7621-mmc: Remove code guarded by nonexistent config option X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b1619236e8cc069bd91acae945e99a394f0eb295;p=linux.git staging: mt7621-mmc: Remove code guarded by nonexistent config option Remove a piece of code that is guarded by a config option, that is nonexistent, the function it calls is also nonexistent. Signed-off-by: Christian Lütke-Stetzkamp Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index 8ac434498229e..518ede67b427c 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -2985,13 +2985,6 @@ static int __init mt_msdc_init(void) /* +++ by chhung */ u32 reg; -#if defined(CONFIG_MTD_ANY_RALINK) - extern int ra_check_flash_type(void); - if (ra_check_flash_type() == 2) { /* NAND */ - printk("%s: !!!!! SDXC Module Initialize Fail !!!!!", __func__); - return 0; - } -#endif printk("MTK MSDC device init.\n"); mtk_sd_device.dev.platform_data = &msdc0_hw; if (ralink_soc == MT762X_SOC_MT7620A || ralink_soc == MT762X_SOC_MT7621AT) {