clk: fixed-rate: fix of_node_get-put imbalance
authorAlan Tull <atull@kernel.org>
Thu, 18 Oct 2018 19:54:11 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:10:47 +0000 (16:10 +0100)
commit0333b8fc793bdb01b454a9c2ad3bf2c63a8cb530
treeddf92f0199ae29ac4bbf60496a7356ca8a5666fd
parentb36c78af0c4d210aa99b705c4d777adf6a44d67f
clk: fixed-rate: fix of_node_get-put imbalance

[ Upstream commit 52091c256bdcad0d01e2852a63f19cd2cce6af96 ]

When the fixed rate clock is created by devicetree,
of_clk_add_provider is called.  Add a call to
of_clk_del_provider in the remove function to balance
it out.

Signed-off-by: Alan Tull <atull@kernel.org>
Fixes: 435779fe1336 ("clk: fixed-rate: Convert into a module platform driver")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-fixed-rate.c