From: Eduardo Valentin <eduardo.valentin@xxxxxxxxxxx> This simple patch changes the methods of read and write control register to be inline. Signed-off-by: Eduardo Valentin <eduardo.valentin@xxxxxxxxxxx> --- arch/arm/mach-omap2/control.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h index 81fc96b..c596b05 100644 --- a/arch/arm/mach-omap2/control.h +++ b/arch/arm/mach-omap2/control.h @@ -25,7 +25,7 @@ extern unsigned long omap2_ctrl_base; /* Control global register get/set */ -static void __attribute__((unused)) ctrl_write_reg(u32 val, u16 reg) +static inline void __attribute__((unused)) ctrl_write_reg(u32 val, u16 reg) { pr_debug("ctrl_write_reg: writing 0x%0x to 0x%0x\n", val, (u32)OMAP_CTRL_REGADDR(reg)); @@ -33,7 +33,7 @@ static void __attribute__((unused)) ctrl_write_reg(u32 val, u16 reg) __raw_writel(val, OMAP_CTRL_REGADDR(reg)); } -static u32 __attribute__((unused)) ctrl_read_reg(u16 reg) +static inline u32 __attribute__((unused)) ctrl_read_reg(u16 reg) { return __raw_readl(OMAP_CTRL_REGADDR(reg)); } -- 1.5.3.4.206.g58ba4 - To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html