[PATCH 19/34] staging: mt7621-mmc: Remove code guarded by nonexistent config option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <christian@xxxxxxxx>
---
 drivers/staging/mt7621-mmc/sd.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c
index ed89ec9733a4..e28635ab556a 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) {
-- 
2.16.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux