From patchwork Mon May 29 15:46:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 100673 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp395660qge; Mon, 29 May 2017 08:48:29 -0700 (PDT) X-Received: by 10.98.214.200 with SMTP id a69mr18864878pfl.40.1496072909204; Mon, 29 May 2017 08:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496072909; cv=none; d=google.com; s=arc-20160816; b=HbxdDBvKFfKXcFJmgdqu2KChEDum3ZLF6y53Wr0kQG8vsyJ85C1tS7z5i11pdjLYSk sJ9lsXBBRH8U4w8EGz6xV5K8yRFYEyKdJAKX1Tb0On0A3m+1xPpoQ1N8cc4xQUdaiOyu v8keVir11X60TDmkvWt3eNm0ryKvmpGb7KiZRcVShDUEWP2iBj0XRNkp0ueNEq9XPAaF zeTvjUS2PyA+OxjCP89t+mOMfQzG9sYltzRzYEGhqtkMrQ5K7E0Cmu8gzEGPu87fZakn R7uElQMU6DSi+fmMrP+luTG7uH8VxnoOYMOl4kbbTcnPyJ9axY8Kh2QtvEJzqiA2JpeC CVnw== 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=4sAH2iSr+Glb+byPfklZ98WzawmFj6b3YwH9SMylm+w=; b=c9f03jDPccYj186hzr9ezKRutqCVFqgSwwVRpdjf92XbearS+R4KrC+OeSo/YqB5CX IONNEXWRU7RHXwiYzsou8kaB7UYdOvrhrfZmbDBQ3UVj0IwnxLg6OVDAHKPV7W5EOFzu IOip50+4AAnzydfH02FKhejNLnCbF/ZdOfyYu35vj85by5Cg6H3Y1E/MUcCG+D4a34lB 5vHhl9EnOY3iCMxjynVNIFVEvdxiC0C8Pfq7sj0CQW+GFydThIyIA+eR+lOcfK1AyTpV gvoVXTFSaOIHdVU8tdG3R+H1VyCJqCrLMJ0zUoQN/UjuHhGaOwVPPzqE/U3hl3wYXURx /CrA== 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 u140si10322095pgb.25.2017.05.29.08.48.28; Mon, 29 May 2017 08:48:29 -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 S1751460AbdE2PsB (ORCPT + 25 others); Mon, 29 May 2017 11:48:01 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35492 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbdE2Pqn (ORCPT ); Mon, 29 May 2017 11:46:43 -0400 Received: by mail-wm0-f54.google.com with SMTP id b84so60812376wmh.0 for ; Mon, 29 May 2017 08:46:42 -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=4sAH2iSr+Glb+byPfklZ98WzawmFj6b3YwH9SMylm+w=; b=GAF1ReanlOSOqaiH49jxHnxsTzzy0XZHXR3TB24gjzyybzxBDFoGWn1Fndfyjykfg7 JSH10p9RmCJsUrCp2+JMw/LcauPKWSp/GUR0vQw60AXwdaP5Y9sMGkwc6XsedLRnD08E rHyPpqUqGsIx0XRR9kEGJdD6Djs2lW1Ih0aRQ= 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=4sAH2iSr+Glb+byPfklZ98WzawmFj6b3YwH9SMylm+w=; b=opvGuFO3PiGIxLqOI+nLXxTv0be6K+W/B5K5ZWffkSfHrKPyRpbSF3lF4+JU4Js4AO qdrsq6bVwhC2LoQiDrpIw8UGs1+tufRXHuh5rqVqJ+vBpDCUIS5PejnXGNLeT1ezeoSu r1e6xUlYkq5d/8JdXJWFCoUWUaLTXIRJ/YouOBMACzq22ERZtWavbLh+m2YjzD925Xmj UfaumMBFQLD+wpGDtJ6JyKPKsl5nkqdIhuKEnAOZWm63OgOW9HDPUDXrwaACvPGtafxK uxCVSpDoLTNk3JZFCsnr4Wbw1rxReF4McUpOs/IbUPzsnsZ2w/5gsnmnDV9xfsTOfFNW o86g== X-Gm-Message-State: AODbwcCEPT6toQhQe3lv75akGokdKSLsu8/7jKrxDg/7L3YhGYILJ+9W ZYv1n6fc4tnG93GN X-Received: by 10.223.129.229 with SMTP id 92mr11270432wra.57.1496072802033; Mon, 29 May 2017 08:46:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 May 2017 08:46:41 -0700 (PDT) From: Benjamin Gaignard Cc: Benjamin Gaignard , Lee Jones , linux-kernel@vger.kernel.org Subject: [PATCH 13/15] mfd: smsc-ece: use devm_of_platform_populate() Date: Mon, 29 May 2017 17:46:01 +0200 Message-Id: <1496072763-31209-14-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: linux-kernel@vger.kernel.org --- drivers/mfd/smsc-ece1099.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/mfd/smsc-ece1099.c b/drivers/mfd/smsc-ece1099.c index 1f40baf..93a8297 100644 --- a/drivers/mfd/smsc-ece1099.c +++ b/drivers/mfd/smsc-ece1099.c @@ -69,8 +69,7 @@ static int smsc_i2c_probe(struct i2c_client *i2c, #ifdef CONFIG_OF if (i2c->dev.of_node) - ret = of_platform_populate(i2c->dev.of_node, - NULL, NULL, &i2c->dev); + ret = devm_of_platform_populate(&i2c->dev); #endif return ret;