diff options
author | Christian Lütke-Stetzkamp <christian@lkamp.de> | 2018-06-16 16:15:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 21:48:05 +0900 |
commit | 008f3853de82a8674bde444c593bab7a9436ad82 (patch) | |
tree | ceb4f4896314e45cdebc2bb7d5012a1765968dc2 | |
parent | 2de186940b8716f514a91a8df1788ce6e8c9d036 (diff) | |
download | linux-008f3853de82a8674bde444c593bab7a9436ad82.tar.gz linux-008f3853de82a8674bde444c593bab7a9436ad82.tar.bz2 linux-008f3853de82a8674bde444c593bab7a9436ad82.zip |
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 <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/mt7621-mmc/sd.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) |