From patchwork Thu Mar 23 08:03:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 95893 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp624837qgd; Thu, 23 Mar 2017 01:04:42 -0700 (PDT) X-Received: by 10.99.9.65 with SMTP id 62mr1437314pgj.22.1490256282380; Thu, 23 Mar 2017 01:04:42 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k69si4632408pgd.418.2017.03.23.01.04.42; Thu, 23 Mar 2017 01:04:42 -0700 (PDT) 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 S932210AbdCWIEl (ORCPT + 4 others); Thu, 23 Mar 2017 04:04:41 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:36951 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932360AbdCWIEA (ORCPT ); Thu, 23 Mar 2017 04:04:00 -0400 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 <0ON9004CJD2ELP50@mailout4.w1.samsung.com>; Thu, 23 Mar 2017 08:03:50 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170323080350eucas1p1a55f7a49e263a309f5e108bb3912fbb7~udCVCHpFU2448424484eucas1p16; Thu, 23 Mar 2017 08:03:50 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id E5.9B.09557.56183D85; Thu, 23 Mar 2017 08:03:49 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170323080349eucas1p24093d55f6654274e0c0bdf02d477c906~udCUbeaoi1973919739eucas1p2v; Thu, 23 Mar 2017 08:03:49 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-c3-58d381653a83 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DB.E5.06687.1D183D85; Thu, 23 Mar 2017 08:05:37 +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 <0ON90067HD26AT60@eusync2.samsung.com>; Thu, 23 Mar 2017 08:03:49 +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 , Chanwoo Choi Subject: [PATCH v4 5/6] mfd: exynos-lpass: Add missing remove() function Date: Thu, 23 Mar 2017 09:03:26 +0100 Message-id: <1490256207-10061-6-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1490256207-10061-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRmVeSWpSXmKPExsWy7djP87qpjZcjDBquGVpsnLGe1eL6l+es FufPb2C3uP/1KKPFlD/LmSw2Pb7GarF5/h9Gi8u75rBZzDi/j8li7ZG77BaH37SzWqza9YfR gcdj56y77B6bVnWyedy5tofNY/OSeo++LasYPT5vk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WMEq8n3qGBcJpYpJYcPU8C0gVm4ChRNfb LrAqEYF2RonXt6+BtTML3GGS2PAyBcQWFvCQuPhuFjOIzSKgKjF7+0FGEJsXKD7v+SxWiHVy EiePTQazOQU8Ja6uOQi2QAioZsOdT+wTGHkXMDKsYhRJLS3OTc8tNtQrTswtLs1L10vOz93E CIyEbcd+bt7BeGlj8CFGAQ5GJR7eiJpLEUKsiWXFlbmHGCU4mJVEeG0LL0cI8aYkVlalFuXH F5XmpBYfYjQFOmois5Rocj4wSvNK4g1NDM0tDY2MLSzMjYyUxHlLPlwJFxJITyxJzU5NLUgt gulj4uCUamCcL+rf+bIs4//VLY5tKenvWTd7M+1u6ptya96J14K3l0+/cU53iamdY8i6iMVv p0+Ss1i3auON1n3LXJou3Vwl/KM5mjV1VpYe24vwrRf3W0T57GxpPXzkgNueb0eLPibt2Lx6 mkcMR1KkyIpu4cbTKS9d90Y+9VixTIuLZ/4Lk9uhdw+48ncFKbEUZyQaajEXFScCAAyv/8qa AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170323080349eucas1p24093d55f6654274e0c0bdf02d477c906 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: 20170323080349eucas1p24093d55f6654274e0c0bdf02d477c906 X-RootMTR: 20170323080349eucas1p24093d55f6654274e0c0bdf02d477c906 References: <1490256207-10061-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 Disable device on driver remove and release allocated regmap. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Sylwester Nawrocki Acked-for-MFD-by: Lee Jones --- drivers/mfd/exynos-lpass.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 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/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index be264988bdc9..9dbbedad916f 100644 --- a/drivers/mfd/exynos-lpass.c +++ b/drivers/mfd/exynos-lpass.c @@ -137,6 +137,16 @@ static int exynos_lpass_probe(struct platform_device *pdev) return of_platform_populate(dev->of_node, NULL, NULL, dev); } +static int exynos_lpass_remove(struct platform_device *pdev) +{ + struct exynos_lpass *lpass = platform_get_drvdata(pdev); + + exynos_lpass_disable(lpass); + regmap_exit(lpass->top); + + return 0; +} + static int __maybe_unused exynos_lpass_suspend(struct device *dev) { struct exynos_lpass *lpass = dev_get_drvdata(dev); @@ -171,6 +181,7 @@ static SIMPLE_DEV_PM_OPS(lpass_pm_ops, exynos_lpass_suspend, .of_match_table = exynos_lpass_of_match, }, .probe = exynos_lpass_probe, + .remove = exynos_lpass_remove, }; module_platform_driver(exynos_lpass_driver);