[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <152642133142.237094.1180384414857609098@swboyd.mtv.corp.google.com>
Date: Tue, 15 May 2018 14:55:31 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Dinh Nguyen <dinguyen@...nel.org>, linux-clk@...r.kernel.org
Cc: dinguyen@...nel.org, mturquette@...libre.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] clk: socfpga: stratix10: use platform driver APIs
Quoting Dinh Nguyen (2018-05-02 07:28:32)
> -static int s10_clkmgr_init(struct device_node *np)
> +static int s10_clkmgr_init(struct platform_device *pdev)
> {
> struct stratix10_clock_data *clk_data;
>
> - clk_data = __socfpga_s10_clk_init(np, STRATIX10_NUM_CLKS);
> + clk_data = __socfpga_s10_clk_init(pdev, STRATIX10_NUM_CLKS);
> if (!clk_data)
And this needs to be updated to check for an error pointer, which I did.
Powered by blists - more mailing lists