mmc: sdricoh_cs: remove unused sdricoh_readw function
authorTom Rix <trix@redhat.com>
Sun, 19 Mar 2023 16:47:44 +0000 (12:47 -0400)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Mar 2023 15:48:01 +0000 (16:48 +0100)
clang with W=1 reports
drivers/mmc/host/sdricoh_cs.c:104:28: error: unused function
  'sdricoh_readw' [-Werror,-Wunused-function]
static inline unsigned int sdricoh_readw(struct sdricoh_host *host,
                           ^
This function is not used, so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230319164744.1707169-1-trix@redhat.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdricoh_cs.c

index 76a8cd3a186f6d8a2cf8246c0358eb1a01ed2747..57b8c1a967565484454c156bb44202cb43963cb8 100644 (file)
@@ -101,14 +101,6 @@ static inline void sdricoh_writel(struct sdricoh_host *host, unsigned int reg,
 
 }
 
-static inline unsigned int sdricoh_readw(struct sdricoh_host *host,
-                                        unsigned int reg)
-{
-       unsigned int value = readw(host->iobase + reg);
-       dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value);
-       return value;
-}
-
 static inline void sdricoh_writew(struct sdricoh_host *host, unsigned int reg,
                                         unsigned short value)
 {