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:
Jayachandran Sreekumaran
2019-04-11 17:00:36 +05:30
committed by nshrivas
parent 1964b5bf3d
commit df553017a5

View File

@@ -1623,6 +1623,7 @@ int pld_is_fw_down(struct device *dev)
{ {
int ret = 0; int ret = 0;
enum pld_bus_type type = pld_get_bus_type(dev); enum pld_bus_type type = pld_get_bus_type(dev);
struct device *ifdev;
switch (type) { switch (type) {
case PLD_BUS_TYPE_SNOC: case PLD_BUS_TYPE_SNOC:
@@ -1634,7 +1635,8 @@ int pld_is_fw_down(struct device *dev)
case PLD_BUS_TYPE_SDIO: case PLD_BUS_TYPE_SDIO:
break; break;
case PLD_BUS_TYPE_USB: 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; break;
default: default:
pr_err("Invalid device type %d\n", type); pr_err("Invalid device type %d\n", type);