From patchwork Mon May 29 15:45:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 100662 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp394929qge; Mon, 29 May 2017 08:46:27 -0700 (PDT) X-Received: by 10.84.194.165 with SMTP id h34mr76135102pld.65.1496072786929; Mon, 29 May 2017 08:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496072786; cv=none; d=google.com; s=arc-20160816; b=ocmcfAhF8/31ZjGlf29BSkMQ+50omstA0mSRdzjfc9UIPXvL/iRyG+f/INUekkebJb LZhcMohxMNaxWPXpVLOthgzV3v7kofhsvG3mkkGbmGJBlwHvWvrR3nX50/SjwQH6OeOk SNEB8GoFX1b/Zq0MTB/3E0eqU1f8IpdnQIoRIJwaU+O/6Hls23yunVb/hmGf3YzH4x6G LNKd33pjzmXFDh5ALGHh8ihKWOIY1L/0Kxibo5WaUGxrfpt1gxbKs/4G3r2tblAKbkgK Jlpwy6Il07qvdVMkZiPIu2VwqWfvSJhbPyG3Hg1MAUPVZLQ54MZeeEuwAixP8VqDrRi+ H/Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=r58lxbMMxgWGHVM5/Q34QKBXQ3gwekyWi6a/zIU5r0M=; b=RCTQJ8ZoxYnqq3xZHgHGjtQFl3OicIBVO7zkQSxIMS6xL4YrZQDZZCUYuW1lTYJnYe VbnQ+ShS9QEBprkqrcPYw9V3WzeTjqKwWx2EWo/CM3cqHzMEtn44odT4vzxercW0UqLW 0pZwje5SLf/ciPTZ5UiXF0pUg2ye4VDLiOFbCqy67vUbb1UGDyfLVxRBe9jDuAz2WdbI lUZNfJtpg1vBOiVuZkbFDL2B8NStp5KYqBAZ8xuAG3yGOs0XqBbqSOvS0GYtFZPQep3U PBFmC5FEobg6TsuEmNK2Y6KGxMTDq8Ax5EgoRuhIv+79ln9LLoubE4ArpEqnpVonUAaC TkNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 1si37628354pli.211.2017.05.29.08.46.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 May 2017 08:46:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ABA9D88610; Mon, 29 May 2017 15:46:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 156EB89364 for ; Mon, 29 May 2017 15:46:25 +0000 (UTC) Received: by mail-wm0-x22d.google.com with SMTP id d127so64524781wmf.0 for ; Mon, 29 May 2017 08:46:25 -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; bh=dyUt10gBOFRH8n2EzG8X22rg8cuv9OKdoVVlWoc4HPM=; b=kWRcIAGLdQxONL0t11G8XJ9tLdkXG8La2KvmGB/mCCqhBz+RWK57gCbdM1AxJgSx0E zWT4H7SgKJFJW3/mvU8sMlPZ30K/GgTdUtq1h9wVCItY4Q4c3hI/97HJtvbT2zxDdnIU N11n69YF2h+ioEwapwcGkuM8MxvNfG7UyN9to= 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; bh=dyUt10gBOFRH8n2EzG8X22rg8cuv9OKdoVVlWoc4HPM=; b=qo98CxEIyZSN2xzkz0JekO7ZPcKUZ9OUHqIYxTaqqYCxnEhT17cTHchNCK5rJF+SbH ca3qrAWJ3mWsrjfEaEczszQrkGUDI+mwgwdXbpUC3aAMox+IYCHOT1HutnPU0feMdzcz +OCnNquzRMFtB+q8ziKs66IoKGaNpIpA85MvO94hasd9b4cKdAC9jcJT1+/mM13mSqqq LoaTjs4EWt5sjZDj8j7SK/6deomiLNV8+4T0cctn0/NNuSN/ryhr7VhHOjg3l6e/s3I8 RsPl+a+iA2/Mlb1tA42pkDnbQ3yZF8pkwSLZTBuQ+xzhIUX3q3d02JNFqjnQ/8pY+SvR m0vQ== X-Gm-Message-State: AODbwcDKdB52LffIIKYf6n1ocukB6UqhSN3Z+oyQSvxdEJU/Lcw+Guj6 mLGgDOlIzBOJNp9i X-Received: by 10.223.160.70 with SMTP id l6mr13232227wrl.0.1496072783532; Mon, 29 May 2017 08:46:23 -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.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 May 2017 08:46:22 -0700 (PDT) From: Benjamin Gaignard To: Subject: [PATCH 00/15] make more driver use devm_of_platform_populate() Date: Mon, 29 May 2017 17:45:48 +0200 Message-Id: <1496072763-31209-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, Olivier Moysan , Sylwester Nawrocki , Fabrice Gasnier , dri-devel@lists.freedesktop.org, Liam Girdwood , Lee Jones , linux-samsung-soc@vger.kernel.org, Kyungmin Park , Krzysztof Kozlowski , Javier Martinez Canillas , Tony Lindgren , Kukjin Kim , linux-media@vger.kernel.org, Alexandre Torgue , linux-arm-msm@vger.kernel.org, Mauro Carvalho Chehab , Mark Brown , Jaroslav Kysela , linux-arm-kernel@lists.infradead.org, freedreno@lists.freedesktop.org, Takashi Iwai , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Hartmut Knaack , Shawn Guo , Jonathan Cameron X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Number of calls to of_platform_populate() aren't unbalanced by a call to of_platform_depopulate() that could generate issue will loading/unloading the drivers. Make those drivers use devm_of_platform_populate() fix the problem without need to add remove function. In some case replacing of_platform_populate() by devm_of_platform_populate() allow to delete driver remove function and save some lines of code. This series of patches based on v4.12-rc3 tag. CC: Alexandre Torgue CC: David Airlie CC: Fabrice Gasnier CC: Hartmut Knaack CC: Jaroslav Kysela CC: Javier Martinez Canillas CC: Jonathan Cameron CC: Krzysztof Kozlowski CC: Kukjin Kim CC: Kyungmin Park CC: Lars-Peter Clausen CC: Lee Jones CC: Liam Girdwood CC: Mark Brown CC: Mauro Carvalho Chehab CC: Olivier Moysan CC: Rob Clark CC: Shawn Guo CC: Sylwester Nawrocki CC: Takashi Iwai CC: Tony Lindgren CC: linux-iio@vger.kernel.org CC: linux-arm-kernel@lists.infradead.org CC: linux-kernel@vger.kernel.org CC: dri-devel@lists.freedesktop.org CC: linux-arm-msm@vger.kernel.org CC: freedreno@lists.freedesktop.org CC: linux-samsung-soc@vger.kernel.org CC: alsa-devel@alsa-project.org CC: linux-media@vger.kernel.org Benjamin Gaignard (15): iio: adc: stm32: use devm_of_platform_populate() iio: dac: stm32: use devm_of_platform_populate() drm: zte: use devm_of_platform_populate() drm: msm: use devm_of_platform_populate() mfd: stm32-timers: use devm_of_platform_populate mfd: atmel: use devm_of_platform_populate() mfd: cros_ec: use devm_of_platform_populate() mfd: exynos: use devm_of_platform_populate() mfd: fsl-imx25: use devm_of_platform_populate() mfd: motorola-cpcap: use devm_of_platform_populate() mfd: palmas: use devm_of_platform_populate() mfd: qcom-spmi-pmic: use devm_of_platform_populate() mfd: smsc-ece: use devm_of_platform_populate() sound: stm32: use devm_of_platform_populate() media: exynos4-is: use devm_of_platform_populate() drivers/gpu/drm/msm/msm_drv.c | 10 ++-------- drivers/gpu/drm/zte/zx_drm_drv.c | 2 +- drivers/iio/adc/stm32-adc-core.c | 4 +--- drivers/iio/dac/stm32-dac-core.c | 3 +-- drivers/media/platform/exynos4-is/fimc-is.c | 7 ++----- drivers/mfd/atmel-flexcom.c | 2 +- drivers/mfd/cros_ec.c | 2 +- drivers/mfd/exynos-lpass.c | 2 +- drivers/mfd/fsl-imx25-tsadc.c | 5 +---- drivers/mfd/motorola-cpcap.c | 13 +------------ drivers/mfd/palmas.c | 2 +- drivers/mfd/qcom-spmi-pmic.c | 9 +-------- drivers/mfd/smsc-ece1099.c | 3 +-- drivers/mfd/stm32-timers.c | 10 +--------- sound/soc/stm/stm32_sai.c | 11 +---------- 15 files changed, 17 insertions(+), 68 deletions(-)