Just call the function, no need for a pointer to a function that calls
the function.
turtles, all the way down...
Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        }
 }
 
-static void linux_wlan_atomic_msleep(uint32_t msc)
-{
-       mdelay(msc);
-}
 static void linux_wlan_dbg(uint8_t *buff)
 {
        PRINT_D(INIT_DBG, "%d\n", *buff);
        nwi->os_context.cfg_wait_event = (void *)&g_linux_wlan->cfg_event;
 
        nwi->os_func.os_sleep = linux_wlan_msleep;
-       nwi->os_func.os_atomic_sleep = linux_wlan_atomic_msleep;
        nwi->os_func.os_debug = linux_wlan_dbg;
        nwi->os_func.os_lock = linux_wlan_lock;
        nwi->os_func.os_unlock = linux_wlan_unlock;
 
        g_wlan.hif_func.hif_clear_int_ext(PLL_INT_CLR);
 
        /* Waiting for PLL */
-       g_wlan.os_func.os_atomic_sleep(WILC_PLL_TO);
+       mdelay(WILC_PLL_TO);
 
        /* poll till read a valid data */
        while (!(ISWILC1000(wilc_get_chipid(true)) && --trials)) {
                PRINT_D(TX_DBG, "PLL update retrying\n");
-               g_wlan.os_func.os_atomic_sleep(1);
+               mdelay(1);
        }
 }
 
 
 
 typedef struct {
        void (*os_sleep)(uint32_t);
-       void (*os_atomic_sleep)(uint32_t);
        void (*os_debug)(uint8_t *);
        void (*os_lock)(void *);
        void (*os_unlock)(void *);