qcacld-3.0: Prevent runtime suspend when linkdown not allowed
Runtime suspend does not save power in d0 mode.
Change-Id: I6bc83923a6384c3275b95bd0ffbb4404d9a3f86d
CRs-Fixed: 935300
diff --git a/core/hif/src/hif_main.c b/core/hif/src/hif_main.c
index 0c32434..e76c64c 100644
--- a/core/hif/src/hif_main.c
+++ b/core/hif/src/hif_main.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2016 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -292,7 +292,7 @@
scn->linkstate_vote--;
if (scn->linkstate_vote == 0)
- hif_bus_prevent_linkdown(false);
+ hif_bus_prevent_linkdown(scn, false);
}
/**
@@ -313,7 +313,7 @@
scn->linkstate_vote++;
if (scn->linkstate_vote == 1)
- hif_bus_prevent_linkdown(true);
+ hif_bus_prevent_linkdown(scn, true);
}
/**