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: 9640535 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 4651C601E9 for ; Thu, 23 Mar 2017 08:06:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34F10284F1 for ; Thu, 23 Mar 2017 08:06:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27A69284F6; Thu, 23 Mar 2017 08:06:04 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14379284F1 for ; Thu, 23 Mar 2017 08:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=DnV3FExnewwSsGMu1MJi+c3Vqm43D8zMzFZ3GAlDWHc=; b=IKKPTgiA0z/fBiqscs/2Hajexw jnWJ7w6j0wJlR6c/Tu4xR4QHL3TOYmh7xNN7lM23/b5Yj3sOznPNkH14t5zQVzs2fqBMZQNJr51Ho SZqQzLea8aAGHQt4rdYECer/PPE8O2K06HwzvVDEdnkDwrh0+0Iuj+p+MSUNZAJ0DzvyrQBarcBC3 eLtk4Lfv9CE3HpN0eNJ65k7lu889tcxaOMpq01YXgnFKt6cOe5uzxc+AtbBzEDiCrlX8Ui3CDYQLJ 5x8rgCV42a/4QMZVWxKaz46tIGWE3656QK8VH8VjjwyNH3WHA0XQ+Ior/X8Nxk1rPzCVRJFF8NhXO AMgcM76Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqxkt-0001mC-M7; Thu, 23 Mar 2017 08:05:59 +0000 Received: from mailout4.w1.samsung.com ([210.118.77.14]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqxjL-0006mO-NB for linux-arm-kernel@lists.infradead.org; Thu, 23 Mar 2017 08:04:27 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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++LasYPT5vkgtgi+KySUnNySxLLdK3S+DKWPbvDWvB fK6Ky5232RoYn3J0MXJySAiYSMx818oMYYtJXLi3nq2LkYtDSGApo8SSc93sEM5nRolr6/pY YTqe7rvHBJFYxijxqb8BrF1IoIFJ4uaqHBCbTcBQouttF9goEYF2Rom7fR1gHcwCN5gkWu5P ZQOpEhbwkLj4bhZYN4uAqsTs7QcZQWxeoPi857Og1slJnDw2GczmFPCUuLrmIAvIIAmBeewS c+f+ADqQA8iRldh0AOoJF4nz17awQ9jCEq+Ow9gyEp0dB5kg7H5GiaZ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YyUxHlLPlwJFxJITyxJzU5NLUgt 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?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: 20170323080349eucas1p24093d55f6654274e0c0bdf02d477c906 X-RootMTR: 20170323080349eucas1p24093d55f6654274e0c0bdf02d477c906 References: <1490256207-10061-1-git-send-email-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170323_010424_375388_3AD7AEF5 X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Linus Walleij , Tomasz Figa , Krzysztof Kozlowski , Chanwoo Choi , Sylwester Nawrocki , Lee Jones , Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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);