From patchwork Wed Sep 30 11:21:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 7297041 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1498C9F32B for ; Wed, 30 Sep 2015 11:21:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BC3520687 for ; Wed, 30 Sep 2015 11:21:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF67D20662 for ; Wed, 30 Sep 2015 11:21:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756169AbbI3LVX (ORCPT ); Wed, 30 Sep 2015 07:21:23 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:37048 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756104AbbI3LVW (ORCPT ); Wed, 30 Sep 2015 07:21:22 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NVH01RV3M7KPTB0@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 30 Sep 2015 20:21:20 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.116]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 29.E3.05342.0B5CB065; Wed, 30 Sep 2015 20:21:20 +0900 (KST) X-AuditID: cbfee690-f794e6d0000014de-e3-560bc5b07662 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 40.ED.18629.0B5CB065; Wed, 30 Sep 2015 20:21:20 +0900 (KST) Received: from localhost.localdomain ([10.252.83.67]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NVH00DLNM7K4I10@mmp1.samsung.com>; Wed, 30 Sep 2015 20:21:20 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, jg1.han@samsung.com, Inki Dae Subject: [PATCH] drm/exynos: dp: remove suspend/resume functions Date: Wed, 30 Sep 2015 20:21:19 +0900 Message-id: <1443612079-28094-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsWyRsSkRHfDUe4wg9bpohZXvr5ns5h0fwKL xeWFl1gtZpzfx+TA4nG/+ziTR9+WVYwenzfJBTBHcdmkpOZklqUW6dslcGXMenSTveAjd8Wi nrcsDYyfOLsYOTkkBEwkbr7dwAphi0lcuLeerYuRi0NIYAWjxPvn89hhin7vvAmVWMoo0b8A puo7o8T6XX+ZQKrYBFQlJq64zwZiiwgoS/yduIoRxGYWiJV40P8VzBYWcJBom3IBrJ4FqL7t 1xywel4BF4muuT1MENvkJE4em8wKskBC4DqbxIaeA8wQDQIS3yYfYuli5ABKyEpsgghLCEhK HFxxg2UCo+ACRoZVjKKpBckFxUnpRSZ6xYm5xaV56XrJ+bmbGIFhePrfswk7GO8dsD7EKMDB qMTD+0KAO0yINbGsuDL3EKMp0IaJzFKiyfnAYM8riTc0NjOyMDUxNTYytzRTEud9LfUzWEgg PbEkNTs1tSC1KL6oNCe1+BAjEwenVANj66pow7RW6a2iy+vXRF8I5O90u+J6ZoX6jcn2hhzM cy8fS3+7MvOsynW31d/UjG1brLn6Jx9fsnn5r0Zl1qCX0gZ6ErlfdhXn8d6J5N25UY/J3zX3 Z9DKpWXqklaWizPmJ5+u3bn20efGkNT6qYz3uD7cjc5f/uHbhhmxLtsdV13v7ruYXrFZiaU4 I9FQi7moOBEAy9MPgT4CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsVy+t9jAd0NR7nDDM7857W48vU9m8Wk+xNY LC4vvMRqMeP8PiYHFo/73ceZPPq2rGL0+LxJLoA5qoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzje Od7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdonZJCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd 35AguB4jAzSQsIYxY9ajm+wFH7krFvW8ZWlg/MTZxcjJISFgIvF75002CFtM4sK99UA2F4eQ wFJGif4FMM53Ron1u/4ygVSxCahKTFxxH6xDREBZ4u/EVYwgNrNArMSD/q9gtrCAg0TblAtg 9SxA9W2/5oDV8wq4SHTN7WGC2CYncfLYZNYJjNwLGBlWMUqkFiQXFCel5xrlpZbrFSfmFpfm pesl5+duYgSH+jPpHYyHd7kfYhTgYFTi4Z3Axx0mxJpYVlyZe4hRgoNZSYRXdQdQiDclsbIq tSg/vqg0J7X4EKMp0AETmaVEk/OBcZhXEm9obGJmZGlkbmhhZGyuJM574xBDmJBAemJJanZq akFqEUwfEwenVANj9r2kU5c/XggXvXl7gppQ04XV3nkWZ4z+mUe1ZC88GnGxRfBJ/hNpXqeO dVEfaur2bot5N+Hvy1fTZtwokxLIck00K97LWb/sH/vLOZs+PTCWusiW3e8xI7jgWN9s+y2X Jszt+tgipJCn1+2xXChW1vDOrUivuLvLa32WST+fcrjskuasE04tSizFGYmGWsxFxYkAdseM iYsCAAA= 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 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 This patch removes unnecessary pm suspend/resume functions. All kms sub drivers will be controlled by top of Exynos drm driver and connector dpms so these sub drivers shouldn't have their own pm interfaces. Signed-off-by: Inki Dae Reviewed-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_dp_core.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index d66ade0..124fb9a 100644 --- a/drivers/gpu/drm/exynos/exynos_dp_core.c +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c @@ -1383,28 +1383,6 @@ static int exynos_dp_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP -static int exynos_dp_suspend(struct device *dev) -{ - struct exynos_dp_device *dp = dev_get_drvdata(dev); - - exynos_dp_disable(&dp->encoder); - return 0; -} - -static int exynos_dp_resume(struct device *dev) -{ - struct exynos_dp_device *dp = dev_get_drvdata(dev); - - exynos_dp_enable(&dp->encoder); - return 0; -} -#endif - -static const struct dev_pm_ops exynos_dp_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(exynos_dp_suspend, exynos_dp_resume) -}; - static const struct of_device_id exynos_dp_match[] = { { .compatible = "samsung,exynos5-dp" }, {}, @@ -1417,7 +1395,6 @@ struct platform_driver dp_driver = { .driver = { .name = "exynos-dp", .owner = THIS_MODULE, - .pm = &exynos_dp_pm_ops, .of_match_table = exynos_dp_match, }, };