[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e90180fb30d5e47603ab8ccebb6dba45e73a9eef.1540970653.git.matti.vaittinen@fi.rohmeurope.com>
Date: Wed, 31 Oct 2018 10:33:23 +0200
From: Matti Vaittinen <matti.vaittinen@...rohmeurope.com>
To: 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>,
Matti Vaittinen <matti.vaittinen@...rohmeurope.com>,
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-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-clk@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-arm-msm@...r.kernel.org, linux-soc@...r.kernel.org,
linux-samsung-soc@...r.kernel.org,
matti.vaittinen@...rohmeurope.com
Subject: [PATCH 6/8] clk: rk808: use managed version of of_provider
registration
Simplify clean-up for rk808 by using managed version of of_provider
registration.
Signed-off-by: Matti Vaittinen <matti.vaittinen@...rohmeurope.com>
---
drivers/clk/clk-rk808.c | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/clk/clk-rk808.c b/drivers/clk/clk-rk808.c
index 6461f2820a5b..177340edaae5 100644
--- a/drivers/clk/clk-rk808.c
+++ b/drivers/clk/clk-rk808.c
@@ -138,23 +138,12 @@ static int rk808_clkout_probe(struct platform_device *pdev)
if (ret)
return ret;
- return of_clk_add_hw_provider(node, of_clk_rk808_get, rk808_clkout);
-}
-
-static int rk808_clkout_remove(struct platform_device *pdev)
-{
- struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent);
- struct i2c_client *client = rk808->i2c;
- struct device_node *node = client->dev.of_node;
-
- of_clk_del_provider(node);
-
- return 0;
+ return devm_of_clk_add_parent_hw_provider(&pdev->dev,
+ of_clk_rk808_get, rk808_clkout);
}
static struct platform_driver rk808_clkout_driver = {
.probe = rk808_clkout_probe,
- .remove = rk808_clkout_remove,
.driver = {
.name = "rk808-clkout",
},
--
2.14.3
Powered by blists - more mailing lists