[PATCH 12/30] staging: mt7621-mmc: Remove unused static msdc_regs

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

 



The static variable msdc_regs is set once, but never used, so remove
it.

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

diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c
index f4da48a5772b..ddd0b301fef3 100644
--- a/drivers/staging/mt7621-mmc/sd.c
+++ b/drivers/staging/mt7621-mmc/sd.c
@@ -142,10 +142,6 @@
 #define MAX_SGMT_SZ         (MAX_DMA_CNT)
 #define MAX_REQ_SZ          (MAX_SGMT_SZ * 8)
 
-#ifdef MT6575_SD_DEBUG
-static struct msdc_regs *msdc_reg[HOST_MAX_NUM];
-#endif
-
 static int cd_active_low = 1;
 
 //=================================
@@ -2364,10 +2360,6 @@ static void msdc_init_hw(struct msdc_host *host)
 {
 	void __iomem *base = host->base;
 
-#ifdef MT6575_SD_DEBUG
-	msdc_reg[host->id] = (struct msdc_regs *)host->base;
-#endif
-
 	/* Power on */
 #if 0 /* --- by chhung */
 	msdc_vcore_on(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