From patchwork Mon Jan 30 12:38:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9545193 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 6EF07604A8 for ; Mon, 30 Jan 2017 12:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 582F426CFF for ; Mon, 30 Jan 2017 12:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B4E327BA5; Mon, 30 Jan 2017 12:51:31 +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 DC1A726CFF for ; Mon, 30 Jan 2017 12:51:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753428AbdA3MuO (ORCPT ); Mon, 30 Jan 2017 07:50:14 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:20145 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752758AbdA3Mtq (ORCPT ); Mon, 30 Jan 2017 07:49:46 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKL00D74F4HQZ60@mailout3.w1.samsung.com>; Mon, 30 Jan 2017 12:38:41 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130123840eucas1p2f33c521ce0ef18f4822b324cb8fe6ceb~ejPdNSIND2844128441eucas1p2T; Mon, 30 Jan 2017 12:38:40 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 07.A7.09557.0D33F885; Mon, 30 Jan 2017 12:38:40 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170130123840eucas1p1cc8877c0968d5da70dc93bdbda344c93~ejPcjYbAI0491204912eucas1p1I; Mon, 30 Jan 2017 12:38:40 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-f1-588f33d0aa8f Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D3.D6.06687.3143F885; Mon, 30 Jan 2017 12:39:47 +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 <0OKL0038AF49F510@eusync3.samsung.com>; Mon, 30 Jan 2017 12:38:40 +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 v3 6/7] mfd: exynos-lpass: Add missing remove() function Date: Mon, 30 Jan 2017 13:38:27 +0100 Message-id: <1485779908-32147-7-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485779908-32147-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIIsWRmVeSWpSXmKPExsWy7djP87oXjPsjDE4fVrHYOGM9q8X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OT8lMy8dFul0BA3XQsl hbzE3FRbpQhd35AgJYWyxJxSIM/IAA04OAe4Byvp2yW4ZUxvuc9W8JqzonvOfqYGxm0cXYyc HBICJhLvlpxjgrDFJC7cW88GYgsJLGGU2LRfpouRC8huYpJYemoxI0iCTcBQouttFxtIQkSg nVHi9e1rTCAOs8AWJomuTRfZQaqEBTwk1q7fAWazCKhKdF59AWbzAsXvzZnOBrFOTuLkscms IDangKfElqeHmCFWe0icv/GfZQIj7wJGhlWMIqmlxbnpucWGesWJucWleel6yfm5mxiB4b/t 2M/NOxgvbQw+xCjAwajEw3tDuC9CiDWxrLgy9xCjBAezkgjvSdX+CCHelMTKqtSi/Pii0pzU 4kOMpkBHTWSWEk3OB8ZmXkm8oYmhuaWhkbGFhbmRkZI4b8mHK+FCAumJJanZqakFqUUwfUwc nFINjEkMTa9X9QQaihTseHj6rFPykZfXmu/+tt93eYrgMz0vvxn/t/j0pxxNuDHrpfb1Q7mz dMRffnZenijwYEHTPuGtzB3XVlm9ZP+vNKFmSxPLiScMTZN9feOY91zWtzHt0SiS3Lx6FmNh reqpFVNWT+Vl6BGv7o/ZJlmp+Sf6xCLdNZzznshzTFBiKc5INNRiLipOBACmeRaClQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170130123840eucas1p1cc8877c0968d5da70dc93bdbda344c93 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: 20170130123840eucas1p1cc8877c0968d5da70dc93bdbda344c93 X-RootMTR: 20170130123840eucas1p1cc8877c0968d5da70dc93bdbda344c93 References: <1485779908-32147-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 Disable device on driver remove and release allocated regmap. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Sylwester Nawrocki --- 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);