]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00174423-2: i.mx6: clock: code clean up in pfd_set_rate
authorJason Liu <r64343@freescale.com>
Tue, 14 Feb 2012 09:20:20 +0000 (17:20 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:02 +0000 (08:34 +0200)
code clean up by removing the dead code in function pfd_set_rate

Signed-off-by: Jason Liu <r64343@freescale.com>
arch/arm/mach-mx6/clock.c

index 41eeebd2d6a15a68365a803c1aed0f447524ed42..13026f934d9adf5f114c3639eff404c1d441c8d8 100644 (file)
@@ -344,9 +344,6 @@ static int pfd_set_rate(struct clk *clk, unsigned long rate)
        __raw_writel(frac << clk->enable_shift,
                        (int)clk->enable_reg + 4);
 
-       tmp = (u64)clk_get_rate(clk->parent) * 18;
-       do_div(tmp, frac);
-
        if (apbh_dma_clk.usecount == 0)
                apbh_dma_clk.disable(&apbh_dma_clk);
        return 0;