From 1be51fed567748a1103d69102b0da2af9f699618 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 12 Jul 2019 09:32:22 -0300 Subject: [PATCH] mx6: clock: Use setbits_le32() The code can be made simpler by using setbits_le32(), so switch to it. Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan --- arch/arm/mach-imx/mx6/clock.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index 7763c79e1c..9d432b4104 100644 --- a/arch/arm/mach-imx/mx6/clock.c +++ b/arch/arm/mach-imx/mx6/clock.c @@ -1279,10 +1279,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk) void enable_ipu_clock(void) { struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR; - int reg; - reg = readl(&mxc_ccm->CCGR3); - reg |= MXC_CCM_CCGR3_IPU1_IPU_MASK; - writel(reg, &mxc_ccm->CCGR3); + + setbits_le32(&mxc_ccm->CCGR3, MXC_CCM_CCGR3_IPU1_IPU_MASK); if (is_mx6dqp()) { setbits_le32(&mxc_ccm->CCGR6, MXC_CCM_CCGR6_PRG_CLK0_MASK); -- 2.39.5