From patchwork Mon May 29 15:45:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 100675 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp395923qge; Mon, 29 May 2017 08:49:17 -0700 (PDT) X-Received: by 10.99.119.7 with SMTP id s7mr19368049pgc.143.1496072957361; Mon, 29 May 2017 08:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496072957; cv=none; d=google.com; s=arc-20160816; b=y6lwVQ6gRSm3CwwUKJWQhXyKOj1iKJKH0+zhbHmJtwtqnqn0Db3BLq2UCN05oj63H2 occmEZorjTFykaiQT6NWIkzntPhWoH7xEfoIKBsD6VUGFwTfamAoZuRPfSD6lx+aw+BZ ZMFTl5VDqglYmy8QYU72mkInaf6iiXr96NZulVDZ4BTP9wjSLpkRmAXXQdiJFrwsWSMj hN1DS5Px410BIQuu2XxNxy9ColjKM7gCCTNlch4M24Sex0oACzkH5LZEh1bpyDjPuNrC XjJ/+WZ0FAloN9NWYHCGlwjwbRTn3Wug6aFxoYFMSnADs3h8TaZU/nuGgqQUkVkUUD/y HOzQ== 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=QKhoW6giTHva3mEdTARScU7EIHAt8wWzTlIefmYZVb0=; b=stw46CFU0s5hcU+NcDuSzHsD7vU0kmBVjf2kZew5/mm3ewLurE1ZXSnwLUa61yf2WS hmnP9vtz8aQKZD2LpEKctKQT95ZK1EXV9ozk8jqqzIbx5x/DaJ1NKT/pDOtXUIou4gdK AU+ho26tjFKfEJdnZW8z7aGXqTvqv60mvBEJv1nQAJkeRY1qpM+3p81C4ZGQrnK4m5M7 73S52rw0rw6uEZQlvWFgxjm3AwZrZkX/0z9bWpP6JJs5HagnjoqH4pHruZsJ152xPi6G Vzejxp6E3oGQjbJjGdqBBYhvHZKzuLZ+iMA/bgU2aiG1IgCAvsdhq5/7rwF7EyvvEujy Q37A== 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 10si10396197pga.419.2017.05.29.08.49.17; Mon, 29 May 2017 08:49:17 -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 S1751272AbdE2Pqg (ORCPT + 25 others); Mon, 29 May 2017 11:46:36 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35314 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751230AbdE2Pqe (ORCPT ); Mon, 29 May 2017 11:46:34 -0400 Received: by mail-wm0-f49.google.com with SMTP id b84so60808197wmh.0 for ; Mon, 29 May 2017 08:46:33 -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=QKhoW6giTHva3mEdTARScU7EIHAt8wWzTlIefmYZVb0=; b=PhsRwp5H8QsMZUDdcUHyBrwcsvClMcLVpfIK+QaQlTmPJZc1rIaXB+QLznAHhuqyEK LhZVlf+89W5pnyhKIRsNlhTbYuBMeaTP4NBgjJaznj252XpJzOMsr2smLPLW3oBvPpD1 4AM9wm1pq2/ipRUguEEbHTMopdkAYZeX6WJNM= 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=QKhoW6giTHva3mEdTARScU7EIHAt8wWzTlIefmYZVb0=; b=oan4BoS5bKnx1JSu0WcbBJT/ZxulWvy4aHH2CUphmNxIae1Y36/oeZLAdkWvAMTn6J V7hN0X+Rp/K64Bd+Wt4/5/IZ6fI71vzVW/YhqUz0/A1K1/BspXqnSDpoNnrq3rXugYAr CiaZ4GYBbQqDQK1D5FVLSttwCq6rlxRo8+VOVpW5xM/Dbk1bQBcxwz80Wg+kugvLn3lM m7fd8ACBpx97FhoiWRsfyasA3dqBW1xduGiMuZWPZ72ZqhkVBL4HaIddMIqMDUVBOWQd mQ67b/f8HOu7av8hhQW1Cc/BYyaGHMg3Qb5+ilQPFVvaOlTsjBj8/N9DUMLq4AmN9/mn A8YQ== X-Gm-Message-State: AODbwcDkCiwqMm/5HL1aSPHDRT5aSGYFIf+Ri4Z7hFrwUcK85fSHk6hq 12w+MJJX+m98re2XmBjl2pbN X-Received: by 10.28.17.143 with SMTP id 137mr22742416wmr.52.1496072793123; Mon, 29 May 2017 08:46:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 May 2017 08:46:32 -0700 (PDT) From: Benjamin Gaignard Cc: Benjamin Gaignard , Lee Jones , linux-kernel@vger.kernel.org Subject: [PATCH 06/15] mfd: atmel: use devm_of_platform_populate() Date: Mon, 29 May 2017 17:45:54 +0200 Message-Id: <1496072763-31209-7-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/atmel-flexcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c index e8e67be..064bde9 100644 --- a/drivers/mfd/atmel-flexcom.c +++ b/drivers/mfd/atmel-flexcom.c @@ -80,7 +80,7 @@ static int atmel_flexcom_probe(struct platform_device *pdev) clk_disable_unprepare(clk); - return of_platform_populate(np, NULL, NULL, &pdev->dev); + return devm_of_platform_populate(&pdev->dev); } static const struct of_device_id atmel_flexcom_of_match[] = {