qcacld-3.0: Correct the dev pointer provided in pld_usb
Correct the dev pointer provided in pld_usb_is_fw_down. Change-Id: Ibc5569c2ae1645813ef2e197c7ad525320312113 CRs-fixed: 2433662
This commit is contained in:

committed by
nshrivas

szülő
1964b5bf3d
commit
df553017a5
@@ -1623,6 +1623,7 @@ int pld_is_fw_down(struct device *dev)
|
||||
{
|
||||
int ret = 0;
|
||||
enum pld_bus_type type = pld_get_bus_type(dev);
|
||||
struct device *ifdev;
|
||||
|
||||
switch (type) {
|
||||
case PLD_BUS_TYPE_SNOC:
|
||||
@@ -1634,7 +1635,8 @@ int pld_is_fw_down(struct device *dev)
|
||||
case PLD_BUS_TYPE_SDIO:
|
||||
break;
|
||||
case PLD_BUS_TYPE_USB:
|
||||
ret = pld_usb_is_fw_down(dev);
|
||||
ifdev = pld_get_if_dev(dev);
|
||||
ret = pld_usb_is_fw_down(ifdev);
|
||||
break;
|
||||
default:
|
||||
pr_err("Invalid device type %d\n", type);
|
||||
|
Reference in New Issue
Block a user