aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-11-04 11:10:04 -0700
committerDmitry Shmidt <dimitrysh@google.com>2011-11-04 11:13:49 -0700
commit3f4f629fc8fb79c489d302968a4e0cb489c50258 (patch)
tree06d083617217de89f5c1ff97c26643ea403ccf7c /drivers
parent5d94d7a3b71a2a8d6586da32e771a624983ba467 (diff)
downloadkernel_samsung_crespo-3f4f629fc8fb79c489d302968a4e0cb489c50258.zip
kernel_samsung_crespo-3f4f629fc8fb79c489d302968a4e0cb489c50258.tar.gz
kernel_samsung_crespo-3f4f629fc8fb79c489d302968a4e0cb489c50258.tar.bz2
net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/bcm4329/dhd_linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcm4329/dhd_linux.c b/drivers/net/wireless/bcm4329/dhd_linux.c
index 3ec1f3f..5f5b418 100644
--- a/drivers/net/wireless/bcm4329/dhd_linux.c
+++ b/drivers/net/wireless/bcm4329/dhd_linux.c
@@ -1519,7 +1519,8 @@ dhd_dpc_thread(void *data)
dhd_os_wake_unlock(&dhd->pub);
}
} else {
- dhd_bus_stop(dhd->pub.bus, TRUE);
+ if (dhd->pub.up)
+ dhd_bus_stop(dhd->pub.bus, TRUE);
dhd_os_wake_unlock(&dhd->pub);
}
}