From patchwork Wed Nov 9 14:23:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 81499 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp223157qge; Wed, 9 Nov 2016 06:24:35 -0800 (PST) X-Received: by 10.99.184.25 with SMTP id p25mr15320652pge.120.1478701475737; Wed, 09 Nov 2016 06:24:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xn10si35323778pab.93.2016.11.09.06.24.35; Wed, 09 Nov 2016 06:24:35 -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 S1754132AbcKIOYe (ORCPT + 4 others); Wed, 9 Nov 2016 09:24:34 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:10732 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754100AbcKIOYR (ORCPT ); Wed, 9 Nov 2016 09:24:17 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OGD0011RPCBB850@mailout2.w1.samsung.com>; Wed, 09 Nov 2016 14:24:11 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20161109142410eucas1p155729e64011f0cfff4600c17abb04f64~FZyKUhdHE1502915029eucas1p1N; Wed, 9 Nov 2016 14:24:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 2F.4D.11330.A8133285; Wed, 9 Nov 2016 14:24:10 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20161109142410eucas1p1ce029aa84c383de34c7b354e1633c783~FZyJklJB40182001820eucas1p1M; Wed, 9 Nov 2016 14:24:10 +0000 (GMT) X-AuditID: cbfec7f2-f79556d000002c42-94-5823318a8964 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 35.AE.07726.A8133285; Wed, 9 Nov 2016 14:24:10 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OGD009LGPC36HB0@eusync2.samsung.com>; Wed, 09 Nov 2016 14:24:10 +0000 (GMT) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Ulf Hansson , Bartlomiej Zolnierkiewicz , Javier Martinez Canillas Subject: [PATCH 07/12] exynos-gsc: Make system PM callbacks available for CONFIG_PM_SLEEP Date: Wed, 09 Nov 2016 15:23:56 +0100 Message-id: <1478701441-29107-8-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1478701441-29107-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsWy7djP87pdhsoRBi+XqFlsnLGe1eLN2zVM FufPb2C36NmwldVixvl9TBZrj9xltzj8pp3V4vjacAcOj02rOtk87lzbw+axpf8uu0ffllWM Hp83yQWwRnHZpKTmZJalFunbJXBlzPt6iLVgCVfFjuOdrA2MVzm6GDk5JARMJOYt/MgMYYtJ XLi3nq2LkYtDSG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oOMJtXwEPi0uT3UOvkJE4emww2lFPAU2LVkZtgthBQzdblsxgnMPIu YGRYxSiSWlqcm55bbKhXnJhbXJqXrpecn7uJERjW24793LyD8dLG4EOMAhyMSjy8HZrKEUKs iWXFlbmHGCU4mJVEeGcaAIV4UxIrq1KL8uOLSnNSiw8xmgIdNZFZSjQ5HxhzeSXxhiaG5paG RsYWFuZGRkrivCUfroQLCaQnlqRmp6YWpBbB9DFxcEo1MBbX7fG+Z2ucVu0v9Z9X7S3z5L+P mGz9dBikalSd7hos5da8V2g9ZfIG960/fsr+YjOelf51184H+/c86ile+ElM84On+s+FW5iK tnHOmrW8VMc0WnM3S9Ku+LMiKZKGM2QOLdt93XT/uq0mEUXzxOI5cn7lV/U+vn9u+RTB8tB/ PlucFlaVRSmxFGckGmoxFxUnAgDOd8wrgQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161109142410eucas1p1ce029aa84c383de34c7b354e1633c783 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161109142410eucas1p1ce029aa84c383de34c7b354e1633c783 X-RootMTR: 20161109142410eucas1p1ce029aa84c383de34c7b354e1633c783 References: <1478701441-29107-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Ulf Hansson There are no need to set up the system PM callbacks unless they are being used. It also causes compiler warnings about unused functions. Silence the warnings by making them available for CONFIG_PM_SLEEP. Signed-off-by: Ulf Hansson [mszyprow: rebased onto v4.9-rc4] Signed-off-by: Marek Szyprowski --- drivers/media/platform/exynos-gsc/gsc-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 1.9.1 -- 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/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index 9ba1619..af6502c 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c @@ -1166,6 +1166,7 @@ static int gsc_runtime_suspend(struct device *dev) } #endif +#ifdef CONFIG_PM_SLEEP static int gsc_resume(struct device *dev) { struct gsc_dev *gsc = dev_get_drvdata(dev); @@ -1202,10 +1203,10 @@ static int gsc_suspend(struct device *dev) return 0; } +#endif static const struct dev_pm_ops gsc_pm_ops = { - .suspend = gsc_suspend, - .resume = gsc_resume, + SET_SYSTEM_SLEEP_PM_OPS(gsc_suspend, gsc_resume) SET_RUNTIME_PM_OPS(gsc_runtime_suspend, gsc_runtime_resume, NULL) };