[PATCH 05/10] sh: clkfwk: add sh_clk_fsidiv_register()

Arnd Bergmann arnd at arndb.de
Mon Nov 12 17:43:08 EST 2012


On Friday 09 November 2012, Simon Horman wrote:
> +
> +static int fsidiv_set_rate(struct clk *clk, unsigned long rate)
> +{
> +       u32 val;
> +       int idx;
> +
> +       idx = (clk->parent->rate / rate) & 0xffff;
> +       if (idx < 2)
> +               __raw_writel(0, clk->mapping->base);
> +       else
> +               __raw_writel(idx << 16, clk->mapping->base);
> +
> +       return 0;
> +}

This gives me a new warning about an unused variable "val" now.

	Arnd



More information about the linux-arm-kernel mailing list