]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: mt7621-mmc: Remove unused macro is_card_present
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 16 Jun 2018 14:15:04 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:48:05 +0000 (21:48 +0900)
The macro is_card_present is unused and also a duplicate of a macro in
mmc, so remove it.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 45d9b62f4a58b115e7cd1cbf0ed833eab2e6ccaf..cfe7517f8bdf38712feef1ed91c84b90bcd8c100 100644 (file)
@@ -218,10 +218,6 @@ static u32 hclks[] = {50000000}; /* +/- by chhung */
                writel((cmd), host->base + SDC_CMD);    \
        } while (0)
 
-// can modify to read h/w register.
-//#define is_card_present(h)   ((readl(MSDC_PS) & MSDC_PS_CDSTS) ? 0 : 1);
-#define is_card_present(h)     (((struct msdc_host *)(h))->card_inserted)
-
 /* +++ by chhung */
 #ifndef __ASSEMBLY__
 #define PHYSADDR(a)             (((unsigned long)(a)) & 0x1fffffff)