mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
clk: ti: adpll: unregister OF clock provider on remove
ti_adpll_probe() registers the driver's onecell clock provider with
of_clk_add_provider(). The remove path only frees the clock resources,
leaving the provider registered after the backing data has been torn
down.
Unregister the OF clock provider before freeing the ADPLL resources so
the provider no longer points at released driver data after device
removal.
Fixes: 21330497f3 ("clk: ti: Add support for dm814x ADPLL")
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
This commit is contained in:
parent
1c4f948047
commit
4c943ddfc2
|
|
@ -925,6 +925,7 @@ static void ti_adpll_remove(struct platform_device *pdev)
|
|||
{
|
||||
struct ti_adpll_data *d = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
of_clk_del_provider(d->np);
|
||||
ti_adpll_free_resources(d);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user