mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Add target bus type field in qdf context
Add target bus type field in qdf context, as bus type needs to accessed at multiple layer. Change-Id: I62b23d68743fedf205bb3859c0de50568ca09b7a CRs-Fixed: 1009993
This commit is contained in:
parent
80dea79636
commit
9db91ba92c
1 changed files with 4 additions and 2 deletions
|
|
@ -303,12 +303,14 @@ static void hdd_hif_close(void *hif_ctx)
|
|||
*
|
||||
* Return: void
|
||||
*/
|
||||
void hdd_init_qdf_ctx(struct device *dev, void *bdev)
|
||||
void hdd_init_qdf_ctx(struct device *dev, void *bdev,
|
||||
enum qdf_bus_type bus_type)
|
||||
{
|
||||
qdf_device_t qdf_dev = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
|
||||
|
||||
qdf_dev->dev = dev;
|
||||
qdf_dev->drv_hdl = bdev;
|
||||
qdf_dev->bus_type = bus_type;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -362,7 +364,7 @@ static int wlan_hdd_probe(struct device *dev, void *bdev, const hif_bus_id *bid,
|
|||
goto err_hdd_deinit;
|
||||
}
|
||||
|
||||
hdd_init_qdf_ctx(dev, bdev);
|
||||
hdd_init_qdf_ctx(dev, bdev, bus_type);
|
||||
|
||||
ret = hdd_hif_open(dev, bdev, bid, bus_type, reinit);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue