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: 100672 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp395429qge; Mon, 29 May 2017 08:47:47 -0700 (PDT) X-Received: by 10.98.16.28 with SMTP id y28mr18537107pfi.163.1496072867501; Mon, 29 May 2017 08:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496072867; cv=none; d=google.com; s=arc-20160816; b=HLQVBHNpnmwxqh7rl/zyXwyD3XACDhi1QEayBui10w2Y826GcXH8YuSRNhZThAkkNt gktY0AIa3RTNyXap61IxFhXZ5NivmFKOqi+hP911yM/GnKWmm+hBaisSmOHLIMZ9ZPho QXbEQrIzYl9daOvuFRONTGIB3aUQLnL86R6Hqxe/lVIiHVn0qiSqokN83BYed64TM7wU uAdjOUhdaTZOBMztCg2v6UJo0eYQP2F1EpWWUJwn12FvGAOaGaFsKEw5DjCcJNp34cQt MncdX+sCp5u2TWiMkcrLa4XiZwvngFIwbn3JbLLAvi4pkM8EMRn/04ZV8eYVkInHj2EY /bTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:in-reply-to:message-id:date :subject:cc:from:dkim-signature:arc-authentication-results; bh=PshoKH7pJlJI6XWm4nqIlUGhuNefaJ9a2VV5+3DuBcY=; b=ReJE0QVNUDHp6YIRRZAEE1WC0gdNwejA9fLmFmrWPQKaCyXLh0azqpk46jro0Hrfxh ysaLG/bghgysH7n79ettbwcPaFpJEvOKPqS/h8q8jV+pAD+KNHF+uN5/qFIbOdTHt4Ku OH7OsErkhjGdNM3c8DpX/O91A5wHRF3MALUzUoHCxnUxOmPbWCeF3elPw6lKOn8FB57U muyFG5KoexuNSZu0RvxIIPBTYyqq4Kf1unS/U0AgxvD3wowWtAc3clTx6sRyKEdKomUT iE+dWfmyddkRPv6NVT+SXGsZy1Cy2ZZ+47J/GIGRiIZWErOeamc7gbW28bkQDDsNdsNL 17+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si10879805pfd.358.2017.05.29.08.47.47; Mon, 29 May 2017 08:47:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbdE2Prd (ORCPT + 25 others); Mon, 29 May 2017 11:47:33 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37119 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751361AbdE2Pqr (ORCPT ); Mon, 29 May 2017 11:46:47 -0400 Received: by mail-wm0-f46.google.com with SMTP id d127so64531468wmf.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=haSdrd9cGfFZz8ECqH4JI+2TgbQBIRozYCVgYTcdYOsxQsKPM3DRcqSk/GPP42pUt+ 3UTyx2PBXMASiEFYP7rfFUTQOwOtT7ts5/gtwky7V3Ey+gCq49FV/qpgE+hJYrI9AVDw eZ3zWGPzriXWIfy+y+Vrz3afjKiukKm389vrcwEDKAzvkUI7TIXyVPIaOUhR/mmBFhIO 2wQCQILH4GkzS2/ZtTd4ssbqm2PeYKI1mZlndkYoXTpCpE0LopPtB8vf3A0SC3cSxXuV Q9illogL2oG0nM6BIa1A+sxU/663V2ESyZ2crURbHCwd0RtFDm2xA/ug+V7gIjmLYb6B DaEQ== X-Gm-Message-State: AODbwcDtexihSP2PCjdOBXgKEFwe39BEeVcBJESKwrT+S0QAGpbKpevw u36vDA14EeKbWrJ1 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 1.9.1 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)