[PATCH v2 03/10] staging: mt7621-mmc: Remove unused global: msdc_6575_host

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

 



The mt6575_host variable is never used, only set and
exported. Removing it for code cleanup.

Signed-off-by: Christian Lütke-Stetzkamp <christian@xxxxxxxx>
Reviewed-by: NeilBrown <neil@xxxxxxxxxx>
---
 drivers/staging/mt7621-mmc/sd.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c
index a2e7341372be..73c1861ac539 100644
--- a/drivers/staging/mt7621-mmc/sd.c
+++ b/drivers/staging/mt7621-mmc/sd.c
@@ -154,7 +154,6 @@ static int cd_active_low = 1;
 //#define PERI_MSDC2_PDN    (17)
 //#define PERI_MSDC3_PDN    (18)
 
-struct msdc_host *msdc_6575_host[] = {NULL, NULL, NULL, NULL};
 #if 0 /* --- by chhung */
 /* gate means clock power down */
 static int g_clk_gate = 0;
@@ -2771,8 +2770,6 @@ static int msdc_drv_probe(struct platform_device *pdev)
 		goto release_mem;
 	}
 	msdc_init_gpd_bd(host, &host->dma);
-	/*for emmc*/
-	msdc_6575_host[pdev->id] = host;
 
 #if 0
 	tasklet_init(&host->card_tasklet, msdc_tasklet_card, (ulong)host);
@@ -2949,5 +2946,3 @@ module_exit(mt_msdc_exit);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("MediaTek MT6575 SD/MMC Card Driver");
 MODULE_AUTHOR("Infinity Chen <infinity.chen@xxxxxxxxxxxx>");
-
-EXPORT_SYMBOL(msdc_6575_host);
-- 
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