From patchwork Mon May 29 15:45:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 100663 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp394965qge; Mon, 29 May 2017 08:46:31 -0700 (PDT) X-Received: by 10.98.216.198 with SMTP id e189mr18622594pfg.61.1496072791828; Mon, 29 May 2017 08:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496072791; cv=none; d=google.com; s=arc-20160816; b=vR/ibZ6s8PZLX6HRKlUuZFnMJJQWIIEM765I5xY494qfB4+f6FX3RDNbpgW9Y0NL3+ fKFxtgT5ArlQZoHIwDUNxuTrPTwg6XGajQdYchx0/FrTw76mR8y8CSc1fL1pec8QHmBj i1EkKJXfbRqfPs5Z7m05pH07qnP0Cc3GMbwnZVDUs6RJWhxtuZIwmHNAXhviLNdE9zpq 17zvRaV8LKuChbnqDP6nJOsmff+BY0tIYikZPrijsb7ysBgyaQ/tMakdSWqD7Z3zm+PB oEtd0GqJegkjpn4WBdybh7arkVjBWO+AMugj8D3b3APdjMUuWyzcH6H3DxeREWHNpWTr 1ywA== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=0/sKwfHqu3ybERovTh9vcr/iyzTUbyo9bThos28kKR0=; b=uHYMlTLku2/CyvLCSiacy56aDhmYg1L7V1KFzfYtILm2AIgmf6WMtQFe3cSfQj/7o9 Y2dwwgpdrsdG/ZusW37OyhjLqrzByZVPmO/H2V1tl8MD92BOfn7DiZLdYdcrB3nAlyc3 2+4+9zqn6Q+GIJ+0AckCpx/bVxrqxIrA7QlzQ9GWZGSAcSLpGj1+uOBu/42oJG3tT/Qu 6oKGkMJDqJ8d80JxQb8LHHP4dFtbWVCVKEXoIDAU/W/eFytSaGEkWV33iL0SNDP3mLhD z4b1dzWfZtuFZNLHcR9Y0K1h9xkt9/b/uD9lBOLZPSGRJiS7ZaMHbyWQnKnXwbPjf9gE dGIg== 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 e19si10531360pgk.199.2017.05.29.08.46.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 May 2017 08:46:31 -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 0D62F89131; Mon, 29 May 2017 15:46:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 38CD189131 for ; Mon, 29 May 2017 15:46:30 +0000 (UTC) Received: by mail-wm0-x22b.google.com with SMTP id e127so65978524wmg.1 for ; Mon, 29 May 2017 08:46:30 -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=Ly5xwPsXvcJIue9dG3HgoHZXjCPsDQPTLg28yUYQ5rQ=; b=QRj+rubINjY57Ik/daWUWqa6xUTlRRggSY0IddPy5k86i4VSG8Y20//xkeKqDCYAbc GIMEnI8H/Dqbi+A1XyRii5dr2xtDUNn/zFSZml6Js8dtkZQcikrYrMTOTJBYVLe+VDLj HzKn/Udqwd6k3NCD3+pxrIHTkTiE8HFH9tVmY= 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=Ly5xwPsXvcJIue9dG3HgoHZXjCPsDQPTLg28yUYQ5rQ=; b=IKUdG4aEeWfjAbvD3ImBQxedrCPrApyJLaI94FgDjCMADJW7biLSkeGD5Gb744T00f rIXY//bfx4Nrn7aAaKSzBuL3akGuYYVxkNrH1TiibPfPPUvTMiLBOBVwPH5mr8H01+M/ kKhrpyGhi/q1MO6DLK8vdLk6e8Ba90xlQRVLP8Cy3f6Fudg1cwj3Wf9q0Glt+kMz3slK bDyro9avki13VilYluiehAtK13f+5KH9SUww6PyqPGR4YcoAoLKu6yEhnUdIIDApgOki Pkm9R0d2aw558hbZ2f+2+DpaGq8QpsOU9e2mTbGDPGOZfL+ffkylKlHGuX315CeA9Pkp 3OZw== X-Gm-Message-State: AODbwcAp9JQFzW4ifBSFhbyNxCWk7do3lCePzs+wH3X4fna/5PuGE+Tn D/Ate8l7heN45Anf X-Received: by 10.223.132.39 with SMTP id 36mr10819926wrf.179.1496072788892; Mon, 29 May 2017 08:46:28 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 May 2017 08:46:28 -0700 (PDT) From: Benjamin Gaignard To: Subject: [PATCH 03/15] drm: zte: use devm_of_platform_populate() Date: Mon, 29 May 2017 17:45:51 +0200 Message-Id: <1496072763-31209-4-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> Cc: Shawn Guo , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org 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" Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Shawn Guo CC: David Airlie CC: dri-devel@lists.freedesktop.org CC: linux-kernel@vger.kernel.org --- drivers/gpu/drm/zte/zx_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c index 614e854..f2b1e5f 100644 --- a/drivers/gpu/drm/zte/zx_drm_drv.c +++ b/drivers/gpu/drm/zte/zx_drm_drv.c @@ -196,7 +196,7 @@ static int zx_drm_probe(struct platform_device *pdev) struct component_match *match = NULL; int ret; - ret = of_platform_populate(parent, NULL, NULL, dev); + ret = devm_of_platform_populate(dev); if (ret) return ret;