[PATCH 10/10] clk: zx: add zx296702 clock support
Arnd Bergmann
arnd at arndb.de
Sat Mar 14 14:33:19 PDT 2015
On Saturday 14 March 2015 19:49:45 Jun Nie wrote:
> +
> +static void __init zx296702_clocks_init(struct device_node *np)
> +{
> + struct device_node *node;
> + int i;
> +
> + topcrm_base = of_iomap(np, 0);
> + WARN_ON(!topcrm_base);
> +
> + node = of_find_compatible_node(NULL, NULL, "zte,zx296702-lsp0crpm");
> + lsp0crpm_base = of_iomap(node, 0);
> + WARN_ON(!lsp0crpm_base);
> +
> + node = of_find_compatible_node(NULL, NULL, "zte,zx296702-lsp1crpm");
> + lsp1crpm_base = of_iomap(node, 0);
> + WARN_ON(!lsp1crpm_base);
> +
Could you make this three separate clock controllers instead?
Arnd
More information about the linux-arm-kernel
mailing list