From e02e12d156dde34885a7ea3e61d65c17da5f3f0c Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Mon, 14 Mar 2016 21:11:36 -0700 Subject: [PATCH] qcacmn: ifdef hif_pm_runtime_mark_last_busy call from ce file fixes a compilation error for snoc. Change-Id: Ie451904aa53a9be37f1fe6d070b19307a8f74fea CRs-Fixed: 978746 --- hif/src/ce/ce_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index 7fa8305ce5..bb7216f702 100644 --- a/hif/src/ce/ce_main.c +++ b/hif/src/ce/ce_main.c @@ -760,13 +760,17 @@ hif_pci_ce_recv_data(struct CE_handle *copyeng, void *ce_context, struct HIF_CE_state *hif_state = pipe_info->HIF_CE_state; struct CE_state *ce_state = (struct CE_state *) copyeng; struct hif_softc *scn = HIF_GET_SOFTC(hif_state); - struct hif_pci_softc *hif_sc = HIF_GET_PCI_SOFTC(hif_state); +#ifdef HIF_PCI + struct hif_pci_softc *hif_pci_sc = HIF_GET_PCI_SOFTC(hif_state); +#endif struct hif_msg_callbacks *msg_callbacks = &hif_state->msg_callbacks_current; uint32_t count; do { - hif_pm_runtime_mark_last_busy(hif_sc->dev); +#ifdef HIF_PCI + hif_pm_runtime_mark_last_busy(hif_pci_sc->dev); +#endif qdf_nbuf_unmap_single(scn->qdf_dev, (qdf_nbuf_t) transfer_context, QDF_DMA_FROM_DEVICE);