From patchwork Wed Feb 3 12:42:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 61076 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp267499lbl; Wed, 3 Feb 2016 04:43:35 -0800 (PST) X-Received: by 10.66.119.71 with SMTP id ks7mr1738312pab.151.1454503402236; Wed, 03 Feb 2016 04:43:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si9144894pfi.224.2016.02.03.04.43.21; Wed, 03 Feb 2016 04:43:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933684AbcBCMnT (ORCPT + 4 others); Wed, 3 Feb 2016 07:43:19 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:59598 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933672AbcBCMnR (ORCPT ); Wed, 3 Feb 2016 07:43:17 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O1Z00KF2200H590@mailout1.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 03 Feb 2016 12:43:12 +0000 (GMT) X-AuditID: cbfec7f4-f79026d00000418a-ae-56b1f5e05227 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id AB.FC.16778.0E5F1B65; Wed, 3 Feb 2016 12:43:12 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O1Z00B561ZTMTA0@eusync3.samsung.com>; Wed, 03 Feb 2016 12:43:12 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Andrzej Hajda , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 04/10] drm/exynos: mic: use devm_clk interface Date: Wed, 03 Feb 2016 13:42:48 +0100 Message-id: <1454503374-16382-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1454503374-16382-1-git-send-email-m.szyprowski@samsung.com> References: <1454503374-16382-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsVy+t/xq7oPvm4MMzj9Qtri1rpzrBYbZ6xn tbjy9T2bxaT7E1gsXty7yGLx+oWhxYzz+5gs1h65y24xY/JLNgdOj/vdx5k8+rasYvT4vEku gDmKyyYlNSezLLVI3y6BK2Pq1T7mgsscFYs3TmVsYOxn72Lk5JAQMJH4f+wnG4QtJnHh3nog m4tDSGApo0R7yzoWCKeJSeLLs6uMIFVsAoYSXW+7wDpEBNwkmg7PZAUpYhbYwiTRvmsjE0hC WMBO4uDcdhYQm0VAVeLBt4esIDavgIfE5U+fWSHWyUn8f7kCrJ5TwFNiT0cnUD0H0DYPiTm3 /Ccw8i5gZFjFKJpamlxQnJSea6hXnJhbXJqXrpecn7uJERJUX3YwLj5mdYhRgINRiYeX4ceG MCHWxLLiytxDjBIczEoivEafN4YJ8aYkVlalFuXHF5XmpBYfYpTmYFES5527632IkEB6Yklq dmpqQWoRTJaJg1OqgXGz6RGRdA2DtmTVFtX6F1ulwn5sXfQv4Ej61raSjHsFa5MMq9dGpZrc b+G5552+4APvyik1wk9XnHqmLP7UYD7fzufzbA/b8XgVCK9g+nS+6fRbu8edMwsEw6RnmphP PfNWeMeR40b1kyYsjN74onmn5J87Ua7XBTNWmYj9ZLBK99knLnhIJVmJpTgj0VCLuag4EQCh N5B5JgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Drivers should use devm_clk* interface instead of of_clk* functions. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c index 4eaef36..10594c1 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_mic.c +++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c @@ -445,7 +445,7 @@ int exynos_mic_probe(struct platform_device *pdev) } 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])) { DRM_ERROR("mic: Failed to get clock (%s)\n", clk_names[i]); @@ -463,13 +463,9 @@ err: static int exynos_mic_remove(struct platform_device *pdev) { struct exynos_mic *mic = platform_get_drvdata(pdev); - int i; drm_bridge_remove(&mic->bridge); - for (i = NUM_CLKS - 1; i > -1; i--) - clk_put(mic->clks[i]); - return 0; }