staging: wilc1000: fix build warning with setup_timer()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 19:59:42 +0000 (12:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 19:59:42 +0000 (12:59 -0700)
I forgot to properly cast a pointer to unsigned long in a conversion to
setup_timer() which resulted in a build warning.  Fix that up.

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>
drivers/staging/wilc1000/host_interface.c

index 078b7d5a128cbfb2050cbd17b974a050065e0c7e..66fa677015db43e5224eef679b60a690708a7297 100644 (file)
@@ -6545,7 +6545,8 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
                        s32Error = WILC_FAIL;
                        goto _fail_mq_;
                }
-               setup_timer(&g_hPeriodicRSSI, GetPeriodicRSSI, pstrWFIDrv);
+               setup_timer(&g_hPeriodicRSSI, GetPeriodicRSSI,
+                           (unsigned long)pstrWFIDrv);
                mod_timer(&g_hPeriodicRSSI, jiffies + msecs_to_jiffies(5000));
        }