staging: wilc1000: remove unused functions
authorLeo Kim <leo.kim@atmel.com>
Mon, 5 Oct 2015 06:25:52 +0000 (15:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:56:03 +0000 (10:56 +0100)
This patch removes unused functions.
 - drivers/staging/wilc1000/linux_mon.c : WILC_WFI_mon_setup
 - drivers/staging/wilc1000/wilc_sdio.o : sdio_set_func0_csa_address_byte0

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_mon.c
drivers/staging/wilc1000/wilc_sdio.c

index a943b2304da763ad88e3d9078fe62b51e80be292..bde409526774049225f16dc512f6b5ed222d0c0b 100644 (file)
@@ -310,32 +310,6 @@ static const struct net_device_ops wilc_wfi_netdev_ops = {
 
 };
 
-/**
- *  @brief      WILC_WFI_mon_setup
- *  @details
- *  @param[in]
- *  @return     int : Return 0 on Success
- *  @author    mdaftedar
- *  @date      12 JUL 2012
- *  @version   1.0
- */
-static void WILC_WFI_mon_setup(struct net_device *dev)
-{
-
-       dev->netdev_ops = &wilc_wfi_netdev_ops;
-       PRINT_INFO(CORECONFIG_DBG, "In Ethernet setup function\n");
-       ether_setup(dev);
-       dev->priv_flags |= IFF_NO_QUEUE;
-       dev->type = ARPHRD_IEEE80211_RADIOTAP;
-       eth_zero_addr(dev->dev_addr);
-
-       {
-               unsigned char mac_add[] = {0x00, 0x50, 0xc2, 0x5e, 0x10, 0x8f};
-               memcpy(dev->dev_addr, mac_add, ETH_ALEN);
-       }
-
-}
-
 /**
  *  @brief      WILC_WFI_init_mon_interface
  *  @details
index 6e28ca08288b3746b8ee5a0b0b79eb9aeb2c85ff..300c571e4e2d17d876e757a0e5c433b77cd2ae44 100644 (file)
@@ -75,28 +75,6 @@ _fail_:
        return 0;
 }
 
-static int sdio_set_func0_csa_address_byte0(u32 adr)
-{
-       sdio_cmd52_t cmd;
-
-       /**
-        *      Review: BIG ENDIAN
-        **/
-       cmd.read_write = 1;
-       cmd.function = 0;
-       cmd.raw = 0;
-       cmd.address = 0x10c;
-       cmd.data = (u8)adr;
-       if (!g_sdio.sdio_cmd52(&cmd)) {
-               g_sdio.dPrint(N_ERR, "[wilc sdio]: Failed cmd52, set 0x10c data...\n");
-               goto _fail_;
-       }
-
-       return 1;
-_fail_:
-       return 0;
-}
-
 static int sdio_set_func0_block_size(u32 block_size)
 {
        sdio_cmd52_t cmd;