From patchwork Wed Jan 25 11:50:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92432 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2170110qgi; Wed, 25 Jan 2017 03:51:13 -0800 (PST) X-Received: by 10.84.217.202 with SMTP id d10mr2973832plj.53.1485345073818; Wed, 25 Jan 2017 03:51:13 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si1319721pld.330.2017.01.25.03.51.13; Wed, 25 Jan 2017 03:51:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751386AbdAYLvM (ORCPT + 4 others); Wed, 25 Jan 2017 06:51:12 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:12782 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbdAYLvG (ORCPT ); Wed, 25 Jan 2017 06:51:06 -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 <0OKC003AK3L3B410@mailout4.w1.samsung.com>; Wed, 25 Jan 2017 11:51:03 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170125115102eucas1p21a74f53870fd28647439a5edd16a82d7~dAXcMz6y91528915289eucas1p2V; Wed, 25 Jan 2017 11:51:02 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 4D.72.30614.62198885; Wed, 25 Jan 2017 11:51:02 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170125115102eucas1p187f817f967c18a640098cf29268238d2~dAXbg13ks1561715617eucas1p1O; Wed, 25 Jan 2017 11:51:02 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-c2-588891264c5b Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9D.1F.06687.56198885; Wed, 25 Jan 2017 11:52:05 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKC00H7J3KW4970@eusync3.samsung.com>; Wed, 25 Jan 2017 11:51:01 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Lee Jones , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/7] soc: samsung: pmu: Add dummy support for Exynos5433 SoC Date: Wed, 25 Jan 2017 12:50:25 +0100 Message-id: <1485345031-2948-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485345031-2948-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsWy7djPc7pqEzsiDNac1bTYOGM9q8X58xvY Le5/PcpoMeXPciaLTY+vsVpsnv+H0eLyrjlsFjPO72OyWHvkLrvF4TftrBardv1hdOD22Dnr LrvHplWdbB53ru1h89i8pN6jb8sqRo/Pm+QC2KK4bFJSczLLUov07RK4Mrbv+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6auY4JwmpgkptybClbFJmAo0fW2C6xKRKCd UeL17WtgVcwCW5gkujZdBJsrLOAjMfFcK5DNwcEioCqxslcPJMwr4C5x79FNJoh1chInj01m BSnhFPCQOPLGBCQsBFQyp7mXeQIj7wJGhlWMIqmlxbnpucWGesWJucWleel6yfm5mxiBwb/t 2M/NOxgvbQw+xCjAwajEwzshqT1CiDWxrLgy9xCjBAezkgivQ0tHhBBvSmJlVWpRfnxRaU5q 8SFGU6CTJjJLiSbnAyMzryTe0MTQ3NLQyNjCwtzISEmct+TDlXAhgfTEktTs1NSC1CKYPiYO TqkGRkVfpQ/G+grndj7Q++3zSfrDk3V5ugeEpqtF8tX8Pdv0ztdg+jOmNO+exQuqzD8f8nrh 8tQriv/T9nlH11+W3eeWcepX3z77kOA7zw/vu20icNjug9TRsPBzahrl31aaX6xTZF1/z2Xz bVOOk9sjWFjEflU3TnDZxZY1Z0apWJnriZdWNXZxIkosxRmJhlrMRcWJAElAVWKUAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170125115102eucas1p187f817f967c18a640098cf29268238d2 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170125115102eucas1p187f817f967c18a640098cf29268238d2 X-RootMTR: 20170125115102eucas1p187f817f967c18a640098cf29268238d2 References: <1485345031-2948-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add compatible for Exynos5433 SoC, so the driver will bind and let other drivers to use PMU regmap. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/exynos-pmu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" 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/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index 813df6e7292d..effb8a8a78c6 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -90,6 +90,8 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) }, { .compatible = "samsung,exynos5420-pmu", .data = &exynos5420_pmu_data, + }, { + .compatible = "samsung,exynos5433-pmu", }, { /*sentinel*/ }, }; @@ -122,7 +124,7 @@ static int exynos_pmu_probe(struct platform_device *pdev) pmu_context->dev = dev; pmu_context->pmu_data = of_device_get_match_data(dev); - if (pmu_context->pmu_data->pmu_init) + if (pmu_context->pmu_data && pmu_context->pmu_data->pmu_init) pmu_context->pmu_data->pmu_init(); platform_set_drvdata(pdev, pmu_context);