Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp597657yba; Thu, 18 Apr 2019 06:35:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHcYrbD8e90GtDmR+JGmhTwDWLJhiygJzf1i7bDGmhcx2WdQ2Ub83blPpOB69Cd7DSU3B2 X-Received: by 2002:a63:1d4f:: with SMTP id d15mr62001642pgm.347.1555594535547; Thu, 18 Apr 2019 06:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594535; cv=none; d=google.com; s=arc-20160816; b=fd8aqh5lhI1bGXxHJMiCk1iZ+YK5ArvhuRgXYCBZw38l2XDoslP/gm8uWoC3k6lIwJ VxVInqaD25w7q3E07hqUhlN00HITpBrMQkzz4WEQ+9KxP/9PBUEuOX71woQtH9/IF6wk tn3leU4G+sr8XoVWohtDPnT0YP4dbEvHt0EqhqlDmzKwm6n9myFfGgGdPc7dxBdqSJXv pPKX9Gr+EAyWr8QsBVcjMinBQWFT8NsGGkdf4TbSUAaT+WmQzc3A9RCjIBmJKJkYHgyP WuQ+n0JGwyeU7EseauMqUwBJlRL1PZAHpDJ2gGipQpxGhfQOsq7uKj8ZlGHtxqkmxTdW gzGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WFrUziQOhI/KHtlxF6YalNpjUqHujNrje0cj8gQ+Muw=; b=x01udM2Glyj7y26QjPDrwJgqozilMWNGzrffzGjkyaXFzakvSIRE62t/eaB9ONdKGS rHVp31+9MHHtcIy2nBz5GQb8hypkGWGyfJ0mOAnR6d8rOAZJI2YpjDyBTuZYr1iK2BJD HpW32ePqVNoi0MkgiE8lFdAwEkqL+iNMU/8ilnuXh+jIVzMxVYBTxeDeUrjjtCs+QRid R0mY67yttdhlKF+opE2FhuW1HzzhoH6V4cKyacr/VmA2V4mTWeP0OOfjNRYvZr3cuzkH oQuKX9eJ8Z4Sqn8Pk7qeWSkDqBTzVnZU5k39TmWQqqisI2bUDX8uuPrEnzcTa6T4g0v/ X4vw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si2072361plt.35.2019.04.18.06.35.20; Thu, 18 Apr 2019 06:35:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389097AbfDRN1p (ORCPT + 99 others); Thu, 18 Apr 2019 09:27:45 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:48309 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389020AbfDRN1o (ORCPT ); Thu, 18 Apr 2019 09:27:44 -0400 Received: from localhost.localdomain (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id B0234200008; Thu, 18 Apr 2019 13:27:39 +0000 (UTC) From: Paul Kocialkowski To: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Cc: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Thomas Petazzoni , Paul Kocialkowski Subject: [PATCH 1/3] drm/sun4i: Add missing drm_atomic_helper_shutdown at driver unbind Date: Thu, 18 Apr 2019 15:27:25 +0200 Message-Id: <20190418132727.5128-2-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418132727.5128-1-paul.kocialkowski@bootlin.com> References: <20190418132727.5128-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A call to drm_atomic_helper_shutdown is required to properly release the internal references taken by the core and avoid warnings about leaking objects. Add it since it was missing. Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support") Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index c8c0ab3da972..ef38ea0a748d 100644 --- a/drivers/gpu/drm/sun4i/sun4i_drv.c +++ b/drivers/gpu/drm/sun4i/sun4i_drv.c @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -130,6 +131,7 @@ static void sun4i_drv_unbind(struct device *dev) drm_dev_unregister(drm); drm_kms_helper_poll_fini(drm); + drm_atomic_helper_shutdown(drm); drm_mode_config_cleanup(drm); of_reserved_mem_device_release(dev); drm_dev_put(drm); -- 2.21.0