From patchwork Tue Mar 26 05:20:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasanna Kumar X-Patchwork-Id: 2334731 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0051D3FD40 for ; Tue, 26 Mar 2013 05:14:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933331Ab3CZFOg (ORCPT ); Tue, 26 Mar 2013 01:14:36 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:12601 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932862Ab3CZFOf (ORCPT ); Tue, 26 Mar 2013 01:14:35 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK900HEH579BVB0@mailout1.samsung.com>; Tue, 26 Mar 2013 14:14:28 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 23.AD.07735.4BE21515; Tue, 26 Mar 2013 14:14:28 +0900 (KST) X-AuditID: cbfee68e-b7f946d000001e37-66-51512eb49f89 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FD.1B.17838.4BE21515; Tue, 26 Mar 2013 14:14:28 +0900 (KST) Received: from user-ubuntu.sisodomain.com ([107.108.83.235]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MK9007G757MEW10@mmp2.samsung.com>; Tue, 26 Mar 2013 14:14:28 +0900 (KST) From: Prasanna Kumar To: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, kyungmin.park@samsung.com, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Prasanna Kumar Subject: [PATCH] [media] s5p-mfc: Change MFC clock reference w.r.t Common Clock Framework Date: Tue, 26 Mar 2013 10:50:51 +0530 Message-id: <1364275251-31394-1-git-send-email-prasanna.ps@samsung.com> X-Mailer: git-send-email 1.7.5.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHLMWRmVeSWpSXmKPExsWyRsSkTneLXmCgwYHvBha9C66yWZxtesNu senxNVaLng1bWS1mnN/HZDH7x092BzaPzUvqPfq2rGL0+LxJLoA5issmJTUnsyy1SN8ugSvj 1sYpLAUf2CpeLZzP2sD4jrWLkZNDQsBE4kPfJChbTOLCvfVsXYxcHEICSxklbtw4zw5TNLdl F1iRkMB0RokPLYYQRd1MEvdO3GQGSbAJ6EnMn7GcHSQhIjCPUWJubxMTSIJZQEdi//NNYJOE BaIlFrTvBIpzcLAIqEp0/U4ECfMKuEt82D2DBWKZgsSvI6tYQeZICLxmk3hzcwHYZhYBAYlv kw+xgPRKCMhKbDrADFEvKXFwxQ2WCYyCCxgZVjGKphYkFxQnpRcZ6RUn5haX5qXrJefnbmIE huXpf8/6djDePGB9iDEZaNxEZinR5HxgWOeVxBsamxlZmJqYGhuZW5qRJqwkzqvWYh0oJJCe WJKanZpakFoUX1Sak1p8iJGJg1OqgXHKsXUr07VfmV27cM1iq7RCYnnMphlebmu/ZL6s1TQW TFqzW5RDmHFNvusUtuk/2OtXyly6OiOG51PAp6Lmp4x3XAUklkUJJcVGix18yJYjXZ6dtPFO P1vt3ZnGLvm6bzLU1vnMV84pvK/9d0lmaHXIxmN8KzUE4hxFObKPSAveq+Q5/TL1hRJLcUai oRZzUXEiAGG3yUxhAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRmVeSWpSXmKPExsVy+t9jQd0teoGBBgcna1j0LrjKZnG26Q27 xabH11gtejZsZbWYcX4fk8XsHz/ZHdg8Ni+p9+jbsorR4/MmuQDmqAZGm4zUxJTUIoXUvOT8 lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zBygvUoKZYk5pUChgMTiYiV9O0wT QkPcdC1gGiN0fUOC4HqMDNBAwhrGjFsbp7AUfGCreLVwPmsD4zvWLkZODgkBE4m5LbugbDGJ C/fWs4HYQgLTGSU+tBh2MXIB2d1MEvdO3GQGSbAJ6EnMn7GcHSQhIjCPUWJubxMTSIJZQEdi //NN7CC2sEC0xIL2nUBxDg4WAVWJrt+JIGFeAXeJD7tnsEAsU5D4dWQV6wRG7gWMDKsYRVML kguKk9JzDfWKE3OLS/PS9ZLzczcxgoP+mdQOxpUNFocYBTgYlXh4NwQHBAqxJpYVV+YeYpTg YFYS4T12ASjEm5JYWZValB9fVJqTWnyIMRlo+URmKdHkfGBE5pXEGxqbmJsam1qaWJiYWZIm rCTOe6DVOlBIID2xJDU7NbUgtQhmCxMHp1QDY+/bUxs+7fzM/0jNmqtfjFX5dvR05cy8W8eY Dhy22z6xbU378Qlrgxg+RIYkin5Umbyi480XnvB192IYjy3tXXg6JfZf4dTk3qObIvodn5af lIvSe99pdv5YTaFwyoKN/tuWKN3zEHCIqknxszM7X+XiUejy0pBpq2Xo1ceS4hFZ1pWT+XZ6 KLEUZyQaajEXFScCABrf+Gq+AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Prasanna Kumar According to Common Clock framework , modified the method of getting clock for MFC Block. Signed-off-by: Prasanna Kumar --- drivers/media/platform/s5p-mfc/s5p_mfc_pm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c b/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c index 6aa38a5..b8ac8f6 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_pm.c @@ -50,7 +50,7 @@ int s5p_mfc_init_pm(struct s5p_mfc_dev *dev) goto err_p_ip_clk; } - pm->clock = clk_get(&dev->plat_dev->dev, dev->variant->mclk_name); + pm->clock = clk_get_parent(pm->clock_gate); if (IS_ERR(pm->clock)) { mfc_err("Failed to get MFC clock\n"); ret = PTR_ERR(pm->clock);