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: 9753407 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 7C2C76038E for ; Mon, 29 May 2017 15:47:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D19E27FB6 for ; Mon, 29 May 2017 15:47:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61A5C28433; Mon, 29 May 2017 15:47:19 +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 E750127FB6 for ; Mon, 29 May 2017 15:47:18 +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=4FrLjSGOb8LU9o90huyt7p6HjwvQ8sPOVoXZfQeo4DY=; b=U7aN5s0ULaPb/a5U7envdTl4QH 02NKK51AhxXNvL2fUoTaQb4hgpwa6v5w8mvESWEe8Og4oISFvzfFEKXoR0izP5FJsy4gZ6X8GJZRj SE/SHE3ucyvpj0FbFGluAOlGkE+4xrWrD5Psyr/zG9yPLCb/E8BOj1ejXxKUg8IhkD4pcDEPp26OV XRNWW7RnNM4gT12rNKdXzYfDD4OS8Fv7R3Jpx0T17VVY0dPP1xnu5/wpj1SA6aAI+qRiOg3WM+4dK wa//a7YPZdgtzsjh1yu4e3xD1XehCpP5unIjaXkq2LD6TDbGOZDu3BYmFzsmXfvsO9eieNWRPMRWa 0a7P32hw==; 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 1dFMt3-0000aI-52; Mon, 29 May 2017 15:47:17 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFMsj-0008U3-Om for linux-arm-kernel@lists.infradead.org; Mon, 29 May 2017 15:47:00 +0000 Received: by mail-wm0-x236.google.com with SMTP id m7so20788748wmg.0 for ; Mon, 29 May 2017 08:46:37 -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=cI6NaiBDM6b9P93XLBKfbjkE4AxZpgGp7E3J7a0+UybTTa2aSp0ogZ1+e5pXHRRVn8 J4NGOC/PJOyx4JYGuakY/899GNFsJLQLPJyFjDMjcuTxQfoodT0010xYRTEo5i+y5sAD JiA3XB+TGcuSyJ2rXhUM+kI3C+JxlF6TN3t+rRB7NrsREO17hpsVA2LSRzzpR+Z49Unr 6jDB+yxdMlJUnL+rjPTVMGgbbfEPcKSSMeHh+AIDLgwOglprTsTFniGh1nOGba/ICBbw t1Zh8dYrRjmlwcWpFZrUd8TeKgJ/ZK+4ZbDTNrlJX3ITegXQiLhjkhWDXUP1zpPMunQM M7BQ== X-Gm-Message-State: AODbwcB2pVvJ/kZM42mPRzoAdKqT6HcZqv5QrfmtlqTi9QzGMIzvZBbV hQTEBqOX7NgyKll5 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 To: 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170529_084658_110187_9DC92230 X-CRM114-Status: GOOD ( 10.99 ) 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: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Javier Martinez Canillas , Kukjin Kim , Benjamin Gaignard , Lee Jones , linux-arm-kernel@lists.infradead.org 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 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)