mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
qcacld-3.0: Fix return value for pld_is_fw_down
Fix return value for pld_is_fw_down. Always return 0 for unsupported bus type. CRs-Fixed: 2319880 Change-Id: I64de028c7dd0c6a411b2d5b5f5e03bdfebed03cc
This commit is contained in:
parent
9d8489c5a8
commit
46dc5cd3b1
1 changed files with 5 additions and 1 deletions
|
|
@ -1482,7 +1482,7 @@ int pld_is_qmi_disable(struct device *dev)
|
|||
*
|
||||
* Return: 1 FW is down
|
||||
* 0 FW is not down
|
||||
* Non zero failure code for errors
|
||||
* Always return 0 for unsupported bus type
|
||||
*/
|
||||
int pld_is_fw_down(struct device *dev)
|
||||
{
|
||||
|
|
@ -1493,6 +1493,10 @@ int pld_is_fw_down(struct device *dev)
|
|||
case PLD_BUS_TYPE_SNOC:
|
||||
ret = pld_snoc_is_fw_down(dev);
|
||||
break;
|
||||
case PLD_BUS_TYPE_PCIE:
|
||||
case PLD_BUS_TYPE_SDIO:
|
||||
case PLD_BUS_TYPE_USB:
|
||||
break;
|
||||
default:
|
||||
pr_err("Invalid device type %d\n", type);
|
||||
ret = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue