ath10k: harmonize error case handling in ath10k_core_start
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 30 Mar 2015 12:39:21 +0000 (15:39 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 1 Apr 2015 17:19:07 +0000 (20:19 +0300)
commit9eea56895faa397ecb5bec99790613a36b6ad1e3
tree395dcae54fcbdd3a879a9ff2bd7585b1fda07d52
parenta7a42849cdc82e42cb5c8404b8a34b1601d51135
ath10k: harmonize error case handling in ath10k_core_start

All of the bringup/init functions called in ath10k_core_start return 0
on success and != 0 on failure. ath10k_wmi_wait_for_service_ready(),
ath10k_wmi_wait_for_unified_ready() and their call sites were adjusted
to fit this model.
The return type of wait_for_completion_timeout is unsigned long not int so
ath10k_wmi_wait_for_service_ready() and ath10k_wmi_wait_for_unified_ready()
were fixed up accordingly.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/wmi.c