OSDN Git Service

staging: wilc1000: remove wilc_sdio_init
authorGlen Lee <glen.lee@atmel.com>
Thu, 24 Dec 2015 06:02:52 +0000 (15:02 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:05:35 +0000 (15:05 -0800)
wilc_sdio_init return always 1, which is needless. Remove it and it's related
codes also.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_sdio.c

index 464d27d..caad876 100644 (file)
@@ -185,11 +185,6 @@ static void wilc_sdio_disable_interrupt(struct wilc *dev)
        dev_info(&func->dev, "wilc_sdio_disable_interrupt OUT\n");
 }
 
-static int wilc_sdio_init(void)
-{
-       return 1;
-}
-
 /********************************************
  *
  *      Function 0
@@ -611,11 +606,6 @@ static int sdio_init(struct wilc *wilc)
 
        g_sdio.irq_gpio = (wilc->dev_irq_num);
 
-       if (!wilc_sdio_init()) {
-               dev_err(&func->dev, "Failed io init bus...\n");
-               return 0;
-       }
-
        /**
         *      function 0 csa enable
         **/