diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2020-12-10 16:38:37 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2021-01-04 12:59:33 +0100 |
commit | e2127db8904a0438836b950f3077c0574488e7fd (patch) | |
tree | 10f429b5ece6be6007c9600b4252d543ac44303b /drivers/gpu/drm/imx | |
parent | a91cfaf6e6503150ed1ef08454f2c03e1f95a4ec (diff) | |
download | linux-stable-e2127db8904a0438836b950f3077c0574488e7fd.tar.gz linux-stable-e2127db8904a0438836b950f3077c0574488e7fd.tar.bz2 linux-stable-e2127db8904a0438836b950f3077c0574488e7fd.zip |
drm/imx: imx-tve: use devm_clk_register
Avoid leaking the clock provider when the driver is unbound.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/imx')
-rw-r--r-- | drivers/gpu/drm/imx/imx-tve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index 649e2f56a5da..3ef71f688f79 100644 --- a/drivers/gpu/drm/imx/imx-tve.c +++ b/drivers/gpu/drm/imx/imx-tve.c @@ -418,7 +418,7 @@ static int tve_clk_init(struct imx_tve *tve, void __iomem *base) init.parent_names = (const char **)&tve_di_parent; tve->clk_hw_di.init = &init; - tve->di_clk = clk_register(tve->dev, &tve->clk_hw_di); + tve->di_clk = devm_clk_register(tve->dev, &tve->clk_hw_di); if (IS_ERR(tve->di_clk)) { dev_err(tve->dev, "failed to register TVE output clock: %ld\n", PTR_ERR(tve->di_clk)); |