mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn: Dummy hif_hal_attach when hal not supported
If hal_api.h is not available do not use its api's. Avoid "implicit declaration of function" compilation error. Change-Id: I8458bde4ce862adeeda5c8d3892ce439be068c06 CRs-Fixed: 1089874
This commit is contained in:
parent
b522bdc3cc
commit
6fe6059965
1 changed files with 8 additions and 0 deletions
|
|
@ -438,6 +438,7 @@ void hif_close(struct hif_opaque_softc *hif_ctx)
|
|||
qdf_mem_free(scn);
|
||||
}
|
||||
|
||||
#ifdef QCA_WIFI_QCA8074
|
||||
static QDF_STATUS hif_hal_attach(struct hif_softc *scn)
|
||||
{
|
||||
if (ce_srng_based(scn)) {
|
||||
|
|
@ -448,6 +449,13 @@ static QDF_STATUS hif_hal_attach(struct hif_softc *scn)
|
|||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#else
|
||||
static QDF_STATUS hif_hal_attach(struct hif_softc *scn)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* hif_enable(): hif_enable
|
||||
* @hif_ctx: hif_ctx
|
||||
|
|
|
|||
Loading…
Reference in a new issue