From patchwork Thu Oct 4 06:45:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1544931 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 228ABDF6DA for ; Thu, 4 Oct 2012 06:45:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755563Ab2JDGpR (ORCPT ); Thu, 4 Oct 2012 02:45:17 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:38071 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754964Ab2JDGpQ (ORCPT ); Thu, 4 Oct 2012 02:45:16 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBC009SZW2NWUN0@mailout2.samsung.com>; Thu, 04 Oct 2012 15:45:14 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-50-506d307a2767 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 26.79.03783.A703D605; Thu, 04 Oct 2012 15:45:14 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBC00A59W3EHL40@mmp1.samsung.com>; Thu, 04 Oct 2012 15:45:14 +0900 (KST) From: Jingoo Han To: 'Florian Tobias Schandinat' Cc: linux-fbdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, 'Thomas Abraham' , 'Jingoo Han' Subject: [PATCH] video: exynos_dp: use clk_prepare_enable and clk_disable_unprepare Date: Thu, 04 Oct 2012 15:45:14 +0900 Message-id: <006701cda1fb$cee12fe0$6ca38fa0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac2h+8opq2m5bUkzQ4e3cqY8S1OHIg== Content-language: ko x-cr-hashedpuzzle: BwWW JJue Lo8b OF1Q Qk/g R/5j VXuD Vtou a33y dV5H eV71 fXjO rD9o usB/ x6Zt zZe5; 5; ZgBsAG8AcgBpAGEAbgBzAGMAaABhAG4AZABpAG4AYQB0AEAAZwBtAHgALgBkAGUAOwBqAGcAMQAuAGgAYQBuAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAbABpAG4AdQB4AC0AZgBiAGQAZQB2AEAAdgBnAGUAcgAuAGsAZQByAG4AZQBsAC4AbwByAGcAOwBsAGkAbgB1AHgALQBzAGEAbQBzAHUAbgBnAC0AcwBvAGMAQAB2AGcAZQByAC4AawBlAHIAbgBlAGwALgBvAHIAZwA7AHQAaABvAG0AYQBzAC4AYQBiAHIAYQBoAGEAbQBAAGwAaQBuAGEAcgBvAC4AbwByAGcA; Sosha1_v1; 7; {C730DA65-F93F-4F37-A946-EA096DD5289F}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Thu, 04 Oct 2012 06:45:06 GMT; WwBQAEEAVABDAEgAXQAgAHYAaQBkAGUAbwA6ACAAZQB4AHkAbgBvAHMAXwBkAHAAOgAgAHUAcwBlACAAYwBsAGsAXwBwAHIAZQBwAGEAcgBlAF8AZQBuAGEAYgBsAGUAIABhAG4AZAAgAGMAbABrAF8AZABpAHMAYQBiAGwAZQBfAHUAbgBwAHIAZQBwAGEAcgBlAA== x-cr-puzzleid: {C730DA65-F93F-4F37-A946-EA096DD5289F} X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsVy+t9jAd0qg9wAg/W7lCxO9H1gtZhxfh+T A5PH501yAYxRXDYpqTmZZalF+nYJXBkXup+zFkznrtj48hZzA+Nqzi5GTg4JAROJvU+XskHY YhIX7q0Hsrk4hAQWMUpM+H2PHcL5xSjxe8VZRpAqNgE1iS9fDgMlODhEBKwkNm3VBKlhFpjB KHH2/gFWkBphgVCJ/XO+soPYLAKqEouvvwLr5RWwlTh6+DEThC0o8WPyPRYQm1lAS2L9zuNM ELa8xOY1b5lB5ksIqEs8+qsLEhYR0JPonDadFaJERGLfi3eMEEfPYZO4vlIFwjaV2LntANME RqFZSDbMQrJhFpINs5CMWsDIsopRNLUguaA4KT3XUK84Mbe4NC9dLzk/dxMjOKSfSe1gXNlg cYhRgINRiYfXsDsnQIg1say4MvcQowQHs5II72bF3AAh3pTEyqrUovz4otKc1OJDjNIcLEri vM0eKQFCAumJJanZqakFqUUwWSYOTqkGxqOOrLzp6XqxjkIfWOtPyXidTjvyblVzYr3JXMZ0 q3OdZ0L+5s98+vLrnYQTJzmWVrGeNF5vvsDlf7DhEoXmtoNPJQu217Dd3Ge6YM+tI2qbl8jf UnUpvxd3ua/oUOq0hUkifw1c57OciS3LuNHBrHZP2v+O7rueBbm77phsT+M8fLl51hQZDiWW 4oxEQy3mouJEAMvLFWxlAgAA Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare calls as required by common clock framework. Signed-off-by: Jingoo Han --- drivers/video/exynos/exynos_dp_core.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index cdc1398..d55470e 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -885,7 +885,7 @@ static int __devinit exynos_dp_probe(struct platform_device *pdev) return PTR_ERR(dp->clock); } - clk_enable(dp->clock); + clk_prepare_enable(dp->clock); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); @@ -956,7 +956,7 @@ static int __devexit exynos_dp_remove(struct platform_device *pdev) if (pdata && pdata->phy_exit) pdata->phy_exit(); - clk_disable(dp->clock); + clk_disable_unprepare(dp->clock); return 0; } @@ -971,7 +971,7 @@ static int exynos_dp_suspend(struct device *dev) if (pdata && pdata->phy_exit) pdata->phy_exit(); - clk_disable(dp->clock); + clk_disable_unprepare(dp->clock); return 0; } @@ -985,7 +985,7 @@ static int exynos_dp_resume(struct device *dev) if (pdata && pdata->phy_init) pdata->phy_init(); - clk_enable(dp->clock); + clk_prepare_enable(dp->clock); exynos_dp_init_dp(dp);