mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 19:54:03 +08:00
drm/exynos: mic: use devm_clk interface
Drivers should use devm_clk* interface instead of of_clk* functions. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
0f10c71a10
commit
38b5e5f4d7
@ -445,7 +445,7 @@ int exynos_mic_probe(struct platform_device *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < NUM_CLKS; i++) {
|
for (i = 0; i < NUM_CLKS; i++) {
|
||||||
mic->clks[i] = of_clk_get_by_name(dev->of_node, clk_names[i]);
|
mic->clks[i] = devm_clk_get(dev, clk_names[i]);
|
||||||
if (IS_ERR(mic->clks[i])) {
|
if (IS_ERR(mic->clks[i])) {
|
||||||
DRM_ERROR("mic: Failed to get clock (%s)\n",
|
DRM_ERROR("mic: Failed to get clock (%s)\n",
|
||||||
clk_names[i]);
|
clk_names[i]);
|
||||||
@ -463,13 +463,9 @@ err:
|
|||||||
static int exynos_mic_remove(struct platform_device *pdev)
|
static int exynos_mic_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct exynos_mic *mic = platform_get_drvdata(pdev);
|
struct exynos_mic *mic = platform_get_drvdata(pdev);
|
||||||
int i;
|
|
||||||
|
|
||||||
drm_bridge_remove(&mic->bridge);
|
drm_bridge_remove(&mic->bridge);
|
||||||
|
|
||||||
for (i = NUM_CLKS - 1; i > -1; i--)
|
|
||||||
clk_put(mic->clks[i]);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user