blob: c255478c71fba70ae75539d165f27126724d7644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -590,7 +590,11 @@ static int lbs_thread(void *data)
/* Reset card, but only when it isn't in the process
* of being shutdown anyway. */
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
if (!dev->dismantle && priv->reset_card)
+#else
+ if (priv->reset_card)
+#endif
priv->reset_card(priv);
}
priv->cmd_timed_out = 0;
|