ath10k: Return failure if fw ready is not arrived

If fw ready indication is not received prior
driver probe, core register will fail as fw interfaces
are not ready.

Return failure for insmod if fw ready indication is
not received by the driver.

Change-Id: I1953c60bda3df464b5f815bb66cc0d5da7aee037
Signed-off-by: Govind Singh <govinds@codeaurora.org>
This commit is contained in:
Govind Singh 2017-02-06 14:32:13 +05:30 committed by Gerrit - the friendly Code Review server
parent 2aa89ab3ff
commit ef65d63b37

View file

@ -1365,6 +1365,10 @@ static int __init ath10k_snoc_init(void)
{
int ret;
if (!icnss_is_fw_ready()) {
pr_err("failed to get fw ready indication\n");
return -EAGAIN;
}
ret = platform_driver_register(&ath10k_snoc_driver);
if (ret)
pr_err("failed to register ath10k snoc driver: %d\n",