From patchwork Mon May 29 15:45:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9753425 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 37DD56038E for ; Mon, 29 May 2017 15:48:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27AD7237A5 for ; Mon, 29 May 2017 15:48:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1ACA028433; Mon, 29 May 2017 15:48:43 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 9048D237A5 for ; Mon, 29 May 2017 15:48:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751094AbdE2Psf (ORCPT ); Mon, 29 May 2017 11:48:35 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37119 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751230AbdE2Pqh (ORCPT ); Mon, 29 May 2017 11:46:37 -0400 Received: by mail-wm0-f42.google.com with SMTP id d127so64531457wmf.0 for ; Mon, 29 May 2017 08:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PshoKH7pJlJI6XWm4nqIlUGhuNefaJ9a2VV5+3DuBcY=; b=OdSzOtrsKV9OlJY0y7fSSKh1v6gLCoox1Zk+V5MLLPCIRDVWkuFqQ5ty0tYfbGYBRk exaTL0ue95Vd60DMFJx5CqYQw4ItUz/LAvPJvdKtOmLwF8+9KYrGpqIeiDZdOqA5vtP7 J+V5UApjch0wrokfQzhKjsWJJKLvYHnhwKQw4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PshoKH7pJlJI6XWm4nqIlUGhuNefaJ9a2VV5+3DuBcY=; b=QLZ383DAQAC+ji9hdy4li5u+K7Rsc7IzP1wW8FJu5ZFfwcmMJH0ZyFQ67w23DZfnra xFYEICKqNJ751GTaCSpQSE42ZapVUvMELXOmBYf7/6A1beqoQ/vJCkbE2zdbMiSwKI36 OzMo7MTRKaZVe0/M6meWxaPIYyxjjRYOKZqXRAU8xtToBFhgfe7fkPYeat1148gXhTnd GltFwtiemue16ZGsrqqfe9wLgJFWr5JeRo0Z+334Vz5/t9Pl8h1EGCw8htk8v7uKj6uU Fx9vFTpNTWitdwquQnr/5mcxEZQQWDQTT0OkNm7lpyiP9xAdmikFca7+aNmxwKo5q7Wi GPFA== X-Gm-Message-State: AODbwcBmV+iMChMbYJ8hliVjV1vYrPbuy1o8TmNNa34glYCaxj/aORW1 ImlJiNkhhtjrWsGZ X-Received: by 10.223.139.199 with SMTP id w7mr12613943wra.92.1496072796041; Mon, 29 May 2017 08:46:36 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.227.188]) by smtp.gmail.com with ESMTPSA id 79sm13210721wmo.13.2017.05.29.08.46.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 May 2017 08:46:35 -0700 (PDT) From: Benjamin Gaignard Cc: Benjamin Gaignard , Lee Jones , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/15] mfd: exynos: use devm_of_platform_populate() Date: Mon, 29 May 2017 17:45:56 +0200 Message-Id: <1496072763-31209-9-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1496072763-31209-1-git-send-email-benjamin.gaignard@linaro.org> References: <1496072763-31209-1-git-send-email-benjamin.gaignard@linaro.org> To: unlisted-recipients:; (no To-header on input) 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 Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: Kukjin Kim CC: Krzysztof Kozlowski CC: Javier Martinez Canillas CC: linux-arm-kernel@lists.infradead.org CC: linux-samsung-soc@vger.kernel.org CC: linux-kernel@vger.kernel.org --- drivers/mfd/exynos-lpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index 0bf3aeb..ca829f8 100644 --- a/drivers/mfd/exynos-lpass.c +++ b/drivers/mfd/exynos-lpass.c @@ -138,7 +138,7 @@ static int exynos_lpass_probe(struct platform_device *pdev) pm_runtime_enable(dev); exynos_lpass_enable(lpass); - return of_platform_populate(dev->of_node, NULL, NULL, dev); + return devm_of_platform_populate(dev); } static int exynos_lpass_remove(struct platform_device *pdev)