diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-05-01 09:22:50 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-05-16 12:04:18 +0200 |
commit | 074df25160ff03e0e13eff058eca10f98f6197ab (patch) | |
tree | 27d6cbff6f28c4595f8010180ca8b035c4502357 /drivers | |
parent | PCI: dwc: dra7xx: Use devm_ioremap_resource() instead of devm_ioremap() (diff) | |
download | linux-074df25160ff03e0e13eff058eca10f98f6197ab.tar.xz linux-074df25160ff03e0e13eff058eca10f98f6197ab.zip |
PCI: qcom: Fix a bitwise vs logical NOT typo
Fix a typo that accidentally sets "val" to zero when we intended just to
clear BIT(0).
Fixes: 90d52d57ccac ("PCI: qcom: Add support for IPQ4019 PCIe controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com>
Acked-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/dwc/pcie-qcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c index 5897af7d3355..b65bbf7c284e 100644 --- a/drivers/pci/dwc/pcie-qcom.c +++ b/drivers/pci/dwc/pcie-qcom.c @@ -869,7 +869,7 @@ static int qcom_pcie_init_2_4_0(struct qcom_pcie *pcie) /* enable PCIe clocks and resets */ val = readl(pcie->parf + PCIE20_PARF_PHY_CTRL); - val &= !BIT(0); + val &= ~BIT(0); writel(val, pcie->parf + PCIE20_PARF_PHY_CTRL); /* change DBI base address */ |