From patchwork Thu Apr 17 05:52:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 4005761 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 44832BFF02 for ; Thu, 17 Apr 2014 05:52:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7EEF32034F for ; Thu, 17 Apr 2014 05:52:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9CE57202FF for ; Thu, 17 Apr 2014 05:52:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755190AbaDQFwX (ORCPT ); Thu, 17 Apr 2014 01:52:23 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:54226 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755142AbaDQFwW (ORCPT ); Thu, 17 Apr 2014 01:52:22 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N45000M8UZ9DQ50@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 17 Apr 2014 14:52:21 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 47.50.10364.51C6F435; Thu, 17 Apr 2014 14:52:21 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-49-534f6c153ac3 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 32.1D.28157.51C6F435; Thu, 17 Apr 2014 14:52:21 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.83.67]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4500840UZ9RFB0@mmp2.samsung.com>; Thu, 17 Apr 2014 14:52:21 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, kyungmin.park@samsung.com, seanpaul@chromium.org, a.hajda@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, Inki Dae Subject: [PATCH] drm/exynos: remove unnecessary runtime pm interfaces Date: Thu, 17 Apr 2014 14:52:20 +0900 Message-id: <1397713940-25838-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsWyRsSkWFc0xz/Y4MJsfYtb686xWvSeO8lk ceXrezaLSfcnsFi8uHeRxeJs0xt2ixnn9zFZ3N1wltFixuSXbA6cHrMbLrJ4bP/2gNXjfvdx Jo++LasYPT5vkgtgjeKySUnNySxLLdK3S+DKmLOsh6XgFW/F/q3dTA2Mz7i7GDk5JARMJC60 PWGDsMUkLtxbD2RzcQgJLGWUON78iLGLkQOsqGVuPER8OqPEj2ULWSCcbiaJNy3zWUG62QRU JSauuA82SUTAVKJj0lKwImaBQ4wS6259BUsIC7hKnH50ixHEZgFq2H18GhOIzSvgIjG17xMz xDYFiTmTbEB6JQT62SVmrOtghqgXkPg2+RALRI2sxKYDzBBXS0ocXHGDZQKj4AJGhlWMoqkF yQXFSelFJnrFibnFpXnpesn5uZsYgaF8+t+zCTsY7x2wPsSYDDRuIrOUaHI+MBbySuINjc2M LExNTI2NzC3NSBNWEudVe5QUJCSQnliSmp2aWpBaFF9UmpNafIiRiYNTqoExRy7gv8WcWX/U RPh+rYr76v3S6cTKo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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 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exyno drm driver has no real hardware device, and runtime pm operation should be done by sub drivers. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 6fa6f07..ab8ffbb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -378,34 +378,8 @@ static int exynos_drm_sys_resume(struct device *dev) } #endif -#ifdef CONFIG_PM_RUNTIME -static int exynos_drm_runtime_suspend(struct device *dev) -{ - struct drm_device *drm_dev = dev_get_drvdata(dev); - pm_message_t message; - - if (pm_runtime_suspended(dev)) - return 0; - - message.event = PM_EVENT_SUSPEND; - return exynos_drm_suspend(drm_dev, message); -} - -static int exynos_drm_runtime_resume(struct device *dev) -{ - struct drm_device *drm_dev = dev_get_drvdata(dev); - - if (!pm_runtime_suspended(dev)) - return 0; - - return exynos_drm_resume(drm_dev); -} -#endif - static const struct dev_pm_ops exynos_drm_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(exynos_drm_sys_suspend, exynos_drm_sys_resume) - SET_RUNTIME_PM_OPS(exynos_drm_runtime_suspend, - exynos_drm_runtime_resume, NULL) }; int exynos_drm_component_add(struct device *dev, @@ -488,9 +462,6 @@ static int exynos_drm_add_components(struct device *dev, struct master *m) static int exynos_drm_bind(struct device *dev) { - pm_runtime_enable(dev); - pm_runtime_get_sync(dev); - return drm_platform_init(&exynos_drm_driver, to_platform_device(dev)); }