[v3] clk: qoriq: Add support for the FMan clock
Scott Wood
scottwood at freescale.com
Wed Apr 15 12:24:37 AEST 2015
On Tue, 2015-04-14 at 14:15 +0300, Igal.Liberman wrote:
> +static int get_fm_clk_idx(int fm_id, int *fm_clk_idx)
> +{
> + struct ccsr_guts __iomem *guts_regs = NULL;
> + struct device_node *guts;
> + uint32_t reg = 0;
> + int clk_src = 0;
> +
> + guts = of_find_matching_node(NULL, guts_device_ids);
> + if (!guts) {
> + pr_err("could not find GUTS node\n");
> + return -ENODEV;
> + }
> +
> + guts_regs = of_iomap(guts, 0);
> + of_node_put(guts);
> + if (!guts_regs) {
> + pr_err("ioremap of GUTS node failed\n");
> + return -ENODEV;
> + }
Error messages should include more context -- at least __func__.
-Scott
More information about the Linuxppc-dev
mailing list