[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4b0cceec-ddc8-5398-33a1-e0e91dabdcdf@ti.com>
Date: Fri, 2 Nov 2018 14:49:51 +0200
From: Peter Ujfalusi <peter.ujfalusi@...com>
To: Matti Vaittinen <matti.vaittinen@...rohmeurope.com>,
Jonathan Corbet <corbet@....net>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Chanwoo Choi <cw00.choi@...sung.com>,
Krzysztof Kozlowski <krzk@...nel.org>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Russell King <linux@...linux.org.uk>,
Andy Gross <andy.gross@...aro.org>,
David Brown <david.brown@...aro.org>,
Kukjin Kim <kgene@...nel.org>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Tomasz Figa <tomasz.figa@...il.com>,
Andrey Smirnov <andrew.smirnov@...il.com>,
Sebastian Reichel <sre@...nel.org>,
Guenter Roeck <linux@...ck-us.net>,
Rob Herring <robh@...nel.org>,
Huang Shijie <sjhuang@...vatar.ai>,
Akshu Agrawal <Akshu.Agrawal@....com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Daniel Kurtz <djkurtz@...omium.org>, <mazziesaccount@...il.com>
CC: <linux-samsung-soc@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<linux-arm-msm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-soc@...r.kernel.org>, <linux-clk@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v3 6/7] clk: clk-twl6040: Free of_provider at remove
On 11/2/18 2:37 PM, Matti Vaittinen wrote:
> use devm variant for of_provider registration so provider is freed
> at exit.
Acked-by: Peter Ujfalusi <peter.ujfalusi@...com>
>
> Signed-off-by: Matti Vaittinen <matti.vaittinen@...rohmeurope.com>
> ---
> drivers/clk/clk-twl6040.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c
> index 25dfe050ae9f..e9da09453eb2 100644
> --- a/drivers/clk/clk-twl6040.c
> +++ b/drivers/clk/clk-twl6040.c
> @@ -108,9 +108,8 @@ static int twl6040_pdmclk_probe(struct platform_device *pdev)
>
> platform_set_drvdata(pdev, clkdata);
>
> - return of_clk_add_hw_provider(pdev->dev.parent->of_node,
> - of_clk_hw_simple_get,
> - &clkdata->pdmclk_hw);
> + return devm_of_clk_add_parent_hw_provider(&pdev->dev,
> + of_clk_hw_simple_get, &clkdata->pdmclk_hw);
> }
>
> static struct platform_driver twl6040_pdmclk_driver = {
>
- Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Powered by blists - more mailing lists