From: Christian Lütke-Stetzkamp Date: Sat, 16 Jun 2018 14:15:04 +0000 (+0200) Subject: staging: mt7621-mmc: Remove unused macro is_card_present X-Git-Tag: v4.19-rc1~101^2~731 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=008f3853de82a8674bde444c593bab7a9436ad82;p=linux.git staging: mt7621-mmc: Remove unused macro is_card_present 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index 45d9b62f4a58..cfe7517f8bdf 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -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)