@@ -209,14 +209,14 @@ struct advk_pcie {
int root_bus_nr;
};
-static inline void advk_writel(struct advk_pcie *advk, u32 val, u64 reg)
+static u32 advk_readl(struct advk_pcie *advk, u64 reg)
{
- writel(val, advk->base + reg);
+ return readl(advk->base + reg);
}
-static inline u32 advk_readl(struct advk_pcie *advk, u64 reg)
+static void advk_writel(struct advk_pcie *advk, u32 val, u64 reg)
{
- return readl(advk->base + reg);
+ writel(val, advk->base + reg);
}
static int advk_pcie_link_up(struct advk_pcie *advk)
Reorder the accessors so the reader is first, as most other drivers do. Uninline them. No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> --- drivers/pci/host/pci-aardvark.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html