Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2627417imu; Mon, 19 Nov 2018 03:40:35 -0800 (PST) X-Google-Smtp-Source: AJdET5dZ2GgvDVLX/PaiaUMLhWFM0eVYKlv/vIMHnnqMR+/SPks0P9UEjbpYCDRALQRTgxLd45Lz X-Received: by 2002:a17:902:1124:: with SMTP id d33-v6mr22832534pla.125.1542627635729; Mon, 19 Nov 2018 03:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542627635; cv=none; d=google.com; s=arc-20160816; b=FQd0tSYoyatbrF2aZfrjkKdPUrLdL3Yb5g5DZJoDMQdMSLUbyoI0unVnifHpioWdIT gQ8J/BdLslHLVZ2Ei0nxdOA/23wZ8LWogHKdzbeUhFFrZswXr7UxglIjrlWpJuMxbdtL kvhRdT5wwuV/88YrlscLgtyzUDKt4htzf6v1QotWdXI90VVBejDntPKexHR8lrdPAHjl PuWc9Ju8rADMbPJn0RilCYw3PLY4C5awGj6SHHb2UbiC/kwVsUO9g3E0DV+4XenldpYc Nraa6Kz866cP7Xsi+5/nMnj9vRbE3RnyEd8XAkqD/NcK4L8e92BEh9snVZT1awPub+5U WEhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=VWtmOpqxnuAWB7Wwid9QdGIgDWW8a+NHksUwyWNcAWQ=; b=Gejxixi+0lJ02bILq4CdPt9zMqVKJG0+m60vZsU3PfipTyVgtZ9qoV/gJtTzprWwBi 4hzmTKs/LzSxODysSQcEtJaUMnh+H2EiPSRTCJxmK+udwOs6Nf1IQgrdLPKGWxqMT3lB oEzYMSoUK8YNTcPhA2yczm+B0qsQCUqUqyReLjL6Kv0jInzJH3kWYuKPSut5i8mN22LC sK1wYTKUBsG0Dqn257A2ufslYbsjjElmLhWuFvxzH+X0Q0NuL/tf3f4D4P6uAGB+Xsis SWbs+TZCV9LPsOMKTTAQ8z/wCgYAgKvg1hP+Ax7B2wM/VbF4MQrhDo36FIsiedvaCQYh 8n6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=BHYc5dXj; 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 f14si25943624pln.289.2018.11.19.03.40.20; Mon, 19 Nov 2018 03:40:35 -0800 (PST) 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=pass header.i=@agner.ch header.s=dkim header.b=BHYc5dXj; 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 S1728706AbeKSWDB (ORCPT + 99 others); Mon, 19 Nov 2018 17:03:01 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:57164 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728573AbeKSWDB (ORCPT ); Mon, 19 Nov 2018 17:03:01 -0500 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 90B1E5C25E1; Mon, 19 Nov 2018 12:39:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1542627576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VWtmOpqxnuAWB7Wwid9QdGIgDWW8a+NHksUwyWNcAWQ=; b=BHYc5dXj0rr7ph3gLHoQjTkxNaXVOwh//n+nHuAERYS4ywhpr9VxenV+oqGVxrKqqJEs97 AmhfeVhOnwcKBbuZQNxLdgCsmsSy1vmifTIqiS5jzXysPBfVovPBD6aol9Xq+HUCC0u3K3 kZtTjmdrAtTfXm6v/9dTBKD+VETB8TU= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Mon, 19 Nov 2018 12:39:36 +0100 From: Stefan Agner To: Fernando Ramos Cc: dri-devel@lists.freedesktop.org, David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , Jonathan Corbet , Alexey Brodkin , Boris Brezillon , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Gerd Hoffmann , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Lucas Stach , Russell King , Christian Gmeiner , Marek Vasut , Kieran Bingham , Linus Walleij , Shawn Guo , Julia Lawall , Gilles Muller , Nicolas Palix , Michal Marek , Haneen Mohammed , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, virtualization@lists.linux-foundation.org, etnaviv@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, cocci@systeme.lip6.fr Subject: Re: [PATCH 3/9] drm: replace "drm_dev_unref" function with "drm_dev_put" In-Reply-To: <20181115221634.22715-4-greenfoo@gluegarage.com> References: <20181115221634.22715-1-greenfoo@gluegarage.com> <20181115221634.22715-4-greenfoo@gluegarage.com> Message-ID: <767d6ca7f54331876cbbbe0cca4b14bd@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.11.2018 23:16, Fernando Ramos wrote: > This patch unifies the naming of DRM functions for reference counting as > requested on Documentation/gpu/todo.rst > > Signed-off-by: Fernando Ramos > --- > drivers/gpu/drm/arc/arcpgu_drv.c | 4 ++-- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 4 ++-- > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 ++-- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 ++-- For mxsfb: Acked-by: Stefan Agner -- Stefan > drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- > drivers/gpu/drm/shmobile/shmob_drm_drv.c | 4 ++-- > drivers/gpu/drm/tve200/tve200_drv.c | 4 ++-- > drivers/gpu/drm/zte/zx_drm_drv.c | 4 ++-- > 8 files changed, 15 insertions(+), 15 deletions(-) > > diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c > index f067de4e1e82..dcb06d4e9135 100644 > --- a/drivers/gpu/drm/arc/arcpgu_drv.c > +++ b/drivers/gpu/drm/arc/arcpgu_drv.c > @@ -216,7 +216,7 @@ static int arcpgu_probe(struct platform_device *pdev) > arcpgu_unload(drm); > > err_unref: > - drm_dev_unref(drm); > + drm_dev_put(drm); > > return ret; > } > @@ -227,7 +227,7 @@ static int arcpgu_remove(struct platform_device *pdev) > > drm_dev_unregister(drm); > arcpgu_unload(drm); > - drm_dev_unref(drm); > + drm_dev_put(drm); > > return 0; > } > diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c > b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c > index 843cac222e60..f8da51a63e2f 100644 > --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c > +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c > @@ -775,7 +775,7 @@ static int atmel_hlcdc_dc_drm_probe(struct > platform_device *pdev) > atmel_hlcdc_dc_unload(ddev); > > err_unref: > - drm_dev_unref(ddev); > + drm_dev_put(ddev); > > return ret; > } > @@ -786,7 +786,7 @@ static int atmel_hlcdc_dc_drm_remove(struct > platform_device *pdev) > > drm_dev_unregister(ddev); > atmel_hlcdc_dc_unload(ddev); > - drm_dev_unref(ddev); > + drm_dev_put(ddev); > > return 0; > } > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > index 83c1f46670bf..52802e6049e0 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > @@ -550,7 +550,7 @@ static int etnaviv_bind(struct device *dev) > out_bind: > kfree(priv); > out_unref: > - drm_dev_unref(drm); > + drm_dev_put(drm); > > return ret; > } > @@ -567,7 +567,7 @@ static void etnaviv_unbind(struct device *dev) > drm->dev_private = NULL; > kfree(priv); > > - drm_dev_unref(drm); > + drm_dev_put(drm); > } > > static const struct component_master_ops etnaviv_master_ops = { > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c > b/drivers/gpu/drm/mxsfb/mxsfb_drv.c > index 2393e6d16ffd..88ba003979e6 100644 > --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c > +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c > @@ -417,7 +417,7 @@ static int mxsfb_probe(struct platform_device *pdev) > err_unload: > mxsfb_unload(drm); > err_free: > - drm_dev_unref(drm); > + drm_dev_put(drm); > > return ret; > } > @@ -428,7 +428,7 @@ static int mxsfb_remove(struct platform_device *pdev) > > drm_dev_unregister(drm); > mxsfb_unload(drm); > - drm_dev_unref(drm); > + drm_dev_put(drm); > > return 0; > } > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c > b/drivers/gpu/drm/rcar-du/rcar_du_drv.c > index 084f58df4a8c..c7fe2433ab9e 100644 > --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c > @@ -454,7 +454,7 @@ static int rcar_du_remove(struct platform_device *pdev) > drm_kms_helper_poll_fini(ddev); > drm_mode_config_cleanup(ddev); > > - drm_dev_unref(ddev); > + drm_dev_put(ddev); > > return 0; > } > diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c > b/drivers/gpu/drm/shmobile/shmob_drm_drv.c > index 6ececad6f845..8554102a6ead 100644 > --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c > +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c > @@ -194,7 +194,7 @@ static int shmob_drm_remove(struct platform_device *pdev) > drm_kms_helper_poll_fini(ddev); > drm_mode_config_cleanup(ddev); > drm_irq_uninstall(ddev); > - drm_dev_unref(ddev); > + drm_dev_put(ddev); > > return 0; > } > @@ -290,7 +290,7 @@ static int shmob_drm_probe(struct platform_device *pdev) > drm_kms_helper_poll_fini(ddev); > drm_mode_config_cleanup(ddev); > err_free_drm_dev: > - drm_dev_unref(ddev); > + drm_dev_put(ddev); > > return ret; > } > diff --git a/drivers/gpu/drm/tve200/tve200_drv.c > b/drivers/gpu/drm/tve200/tve200_drv.c > index 72efcecb44f7..28e2d03c0ccf 100644 > --- a/drivers/gpu/drm/tve200/tve200_drv.c > +++ b/drivers/gpu/drm/tve200/tve200_drv.c > @@ -249,7 +249,7 @@ static int tve200_probe(struct platform_device *pdev) > clk_disable: > clk_disable_unprepare(priv->pclk); > dev_unref: > - drm_dev_unref(drm); > + drm_dev_put(drm); > return ret; > } > > @@ -263,7 +263,7 @@ static int tve200_remove(struct platform_device *pdev) > drm_panel_bridge_remove(priv->bridge); > drm_mode_config_cleanup(drm); > clk_disable_unprepare(priv->pclk); > - drm_dev_unref(drm); > + drm_dev_put(drm); > > return 0; > } > diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c > index 11ef17c2d1c1..5b6f1eda52e0 100644 > --- a/drivers/gpu/drm/zte/zx_drm_drv.c > +++ b/drivers/gpu/drm/zte/zx_drm_drv.c > @@ -114,7 +114,7 @@ static int zx_drm_bind(struct device *dev) > component_unbind_all(dev, drm); > out_unregister: > dev_set_drvdata(dev, NULL); > - drm_dev_unref(drm); > + drm_dev_put(drm); > return ret; > } > > @@ -127,7 +127,7 @@ static void zx_drm_unbind(struct device *dev) > drm_mode_config_cleanup(drm); > component_unbind_all(dev, drm); > dev_set_drvdata(dev, NULL); > - drm_dev_unref(drm); > + drm_dev_put(drm); > } > > static const struct component_master_ops zx_drm_master_ops = {