lkml.org 
[lkml]   [2018]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH v3 4/7] clk: clk-hi655x: Free of_provider at remove
    use devm variant for of_provider registration so provider is freed
    at exit.

    Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
    ---
    drivers/clk/clk-hi655x.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/clk/clk-hi655x.c b/drivers/clk/clk-hi655x.c
    index 403a0188634a..394d0109104d 100644
    --- a/drivers/clk/clk-hi655x.c
    +++ b/drivers/clk/clk-hi655x.c
    @@ -107,8 +107,8 @@ static int hi655x_clk_probe(struct platform_device *pdev)
    if (ret)
    return ret;

    - return of_clk_add_hw_provider(parent->of_node, of_clk_hw_simple_get,
    - &hi655x_clk->clk_hw);
    + return devm_of_clk_add_parent_hw_provider(&pdev->dev,
    + of_clk_hw_simple_get, &hi655x_clk->clk_hw);
    }

    static struct platform_driver hi655x_clk_driver = {
    --
    2.14.3

    --
    Matti Vaittinen
    ROHM Semiconductors

    ~~~ "I don't think so," said Rene Descartes. Just then, he vanished ~~~

    \
     
     \ /
      Last update: 2018-11-02 13:37    [W:3.407 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site