staging: mt7621-mmc: Remove unused functions
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 7 Apr 2018 08:16:19 +0000 (10:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:36:28 +0000 (15:36 +0200)
The functions msdc_eirq_cd and msdc_eirq_sdio are defined but never
used, so they are removed. This also fixes two compiler warnings:

drivers/staging/mt7621-mmc/sd.c:517:13: warning: ‘msdc_eirq_cd’ defined but
not used [-Wunused-function]
 static void msdc_eirq_cd(void *data)
             ^~~~~~~~~~~~
drivers/staging/mt7621-mmc/sd.c:507:13: warning: ‘msdc_eirq_sdio’ defined but
not used [-Wunused-function]
 static void msdc_eirq_sdio(void *data)

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

index bec49b8400a9a9ad87f0513213295b98b23ee7d2..b42c1ea4159ec409e5327de1883d2afacfad51d0 100644 (file)
@@ -503,30 +503,6 @@ static void msdc_set_timeout(struct msdc_host *host, u32 ns, u32 clks)
              ns, clks, timeout + 1);
 }
 
-/* msdc_eirq_sdio() will be called when EIRQ(for WIFI) */
-static void msdc_eirq_sdio(void *data)
-{
-       struct msdc_host *host = (struct msdc_host *)data;
-
-       N_MSG(INT, "SDIO EINT");
-
-       mmc_signal_sdio_irq(host->mmc);
-}
-
-/* msdc_eirq_cd will not be used!  We not using EINT for card detection. */
-static void msdc_eirq_cd(void *data)
-{
-       struct msdc_host *host = (struct msdc_host *)data;
-
-       N_MSG(INT, "CD EINT");
-
-#if 0
-       tasklet_hi_schedule(&host->card_tasklet);
-#else
-       schedule_delayed_work(&host->card_delaywork, HZ);
-#endif
-}
-
 #if 0
 static void msdc_tasklet_card(unsigned long arg)
 {