From patchwork Mon Jan 16 06:44:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9518119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6D786020A for ; Mon, 16 Jan 2017 06:45:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 801CC28386 for ; Mon, 16 Jan 2017 06:45:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74BED2838E; Mon, 16 Jan 2017 06:45:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C33B528386 for ; Mon, 16 Jan 2017 06:45:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751405AbdAPGpe (ORCPT ); Mon, 16 Jan 2017 01:45:34 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:19939 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbdAPGp2 (ORCPT ); Mon, 16 Jan 2017 01:45:28 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJV00GMZ1FP0Y50@mailout4.w1.samsung.com>; Mon, 16 Jan 2017 06:45:25 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170116064524eucas1p1f314f72d0fbe89e82ff07938145de3c9~aLZBF9OKD0708307083eucas1p1q; Mon, 16 Jan 2017 06:45:24 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 37.77.09557.40C6C785; Mon, 16 Jan 2017 06:45:24 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170116064524eucas1p1fb1b3d080298b895d95bed106879255e~aLZAayF5b0708307083eucas1p1p; Mon, 16 Jan 2017 06:45:24 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-4d-587c6c047b90 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F5.9B.06687.B3C6C785; Mon, 16 Jan 2017 06:46:19 +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 <0OJV00BS81FJUN70@eusync2.samsung.com>; Mon, 16 Jan 2017 06:45:24 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz Subject: [PATCH 02/12] soc: samsung: pmu: Use of_device_get_match_data helper Date: Mon, 16 Jan 2017 07:44:57 +0100 Message-id: <1484549107-5957-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484549107-5957-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRmVeSWpSXmKPExsWy7djP87osOTURBhfeq1hsnLGe1eL8+Q3s FlP+LGey2PT4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lIoS8wpBfKMDNCAg3OAe7CSvl2CW8app0eYC55wViyft5ylgXExRxcjB4eEgInE pzmyXYycQKaYxIV769m6GLk4hASWMEpc+/mJBcJpYpI427uKEaSKTcBQouttF1iViEAzo0TD kl4wh1lgApPEzE8NTCBVwgK+Eu9X72QDWcEioCrx/bkUSJhXwF3i5eXPzBDr5CROHpvMCmJz CnhITNzXygJiCwHVzHg1lXkCI+8CRoZVjCKppcW56bnFhnrFibnFpXnpesn5uZsYgSG/7djP zTsYL20MPsQowMGoxMP7Y1d1hBBrYllxZe4hRgkOZiURXrfMmggh3pTEyqrUovz4otKc1OJD jKZAN01klhJNzgfGY15JvKGJobmloZGxhYW5kZGSOG/JhyvhQgLpiSWp2ampBalFMH1MHJxS DYx9DZdy5S8adXU9spm3MynK00ipdnHylsuHHLcsOLRyp2rNEc3kjf+K309ksDl27WD7vpPt hVNff3743eHvgeb4NX5JrCeO7lTz/tr9R7Wbm+vzq8gtZ0S1pix6cYovQtr+T2Tp096iuSFh ta6Wm14viwj4biOd89FOTD6DI9llRc9Gi603RXuUWIozEg21mIuKEwHlS/VCjwIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170116064524eucas1p1fb1b3d080298b895d95bed106879255e 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: 20170116064524eucas1p1fb1b3d080298b895d95bed106879255e X-RootMTR: 20170116064524eucas1p1fb1b3d080298b895d95bed106879255e References: <1484549107-5957-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 X-Virus-Scanned: ClamAV using ClamSMTP Replace custom code with generic helper to retrieve driver data. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/exynos-pmu.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index 63bb471845cb..0f4b4fce9d90 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -94,7 +95,6 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) static int exynos_pmu_probe(struct platform_device *pdev) { - const struct of_device_id *match; struct device *dev = &pdev->dev; struct resource *res; @@ -111,10 +111,7 @@ static int exynos_pmu_probe(struct platform_device *pdev) return -ENOMEM; } pmu_context->dev = dev; - - match = of_match_node(exynos_pmu_of_device_ids, dev->of_node); - - pmu_context->pmu_data = match->data; + pmu_context->pmu_data = of_device_get_match_data(dev); if (pmu_context->pmu_data->pmu_init) pmu_context->pmu_data->pmu_init();