PCI: dwc/intel-gw: Remove unused function
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 15 Apr 2021 08:32:57 +0000 (16:32 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 29 Apr 2021 16:05:59 +0000 (17:05 +0100)
Fix the following clang warning:

drivers/pci/controller/dwc/pcie-intel-gw.c:84:19: warning: unused
function 'pcie_app_rd' [-Wunused-function].

Link: https://lore.kernel.org/r/1618475577-99198-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/controller/dwc/pcie-intel-gw.c

index 0cedd1f95f372c9e70f875db2921e19f3c0241c9..f89a7d24ba28eb1c3a7f7a4e7597cbabcaa472d0 100644 (file)
@@ -81,11 +81,6 @@ static void pcie_update_bits(void __iomem *base, u32 ofs, u32 mask, u32 val)
                writel(val, base + ofs);
 }
 
-static inline u32 pcie_app_rd(struct intel_pcie_port *lpp, u32 ofs)
-{
-       return readl(lpp->app_base + ofs);
-}
-
 static inline void pcie_app_wr(struct intel_pcie_port *lpp, u32 ofs, u32 val)
 {
        writel(val, lpp->app_base + ofs);