All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: "Noralf Trønnes" <noralf@tronnes.org>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/debugfs: Remove the drm_driver.debugfs_cleanup callback
Date: Wed, 8 Mar 2017 11:29:41 +0100	[thread overview]
Message-ID: <20170308102940.cpqiwdzsb7odw3gb@phenom.ffwll.local> (raw)
In-Reply-To: <20170307204924.1002-3-noralf@tronnes.org>

On Tue, Mar 07, 2017 at 09:49:23PM +0100, Noralf Trønnes wrote:
> Remove the .debugfs_cleanup() callback now that all the users are gone.
> 
> Signed-off-by: Noralf Trønnes <noralf@tronnes.org>

First 2 patches merged to drm-misc, with Rob's irc ack on the first one.
I'll leave the 3rd for Gerd.

Thanks, Daniel

> ---
>  drivers/gpu/drm/drm_debugfs.c | 5 -----
>  include/drm/drm_drv.h         | 1 -
>  2 files changed, 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c
> index 8b2c61a..1d2d18d 100644
> --- a/drivers/gpu/drm/drm_debugfs.c
> +++ b/drivers/gpu/drm/drm_debugfs.c
> @@ -242,14 +242,9 @@ static void drm_debugfs_remove_all_files(struct drm_minor *minor)
>   */
>  int drm_debugfs_cleanup(struct drm_minor *minor)
>  {
> -	struct drm_device *dev = minor->dev;
> -
>  	if (!minor->debugfs_root)
>  		return 0;
>  
> -	if (dev->driver->debugfs_cleanup)
> -		dev->driver->debugfs_cleanup(minor);
> -
>  	drm_debugfs_remove_all_files(minor);
>  
>  	debugfs_remove_recursive(minor->debugfs_root);
> diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h
> index 661ca24..8ed1ef5 100644
> --- a/include/drm/drm_drv.h
> +++ b/include/drm/drm_drv.h
> @@ -302,7 +302,6 @@ struct drm_driver {
>  	void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv);
>  
>  	int (*debugfs_init)(struct drm_minor *minor);
> -	void (*debugfs_cleanup)(struct drm_minor *minor);
>  
>  	/**
>  	 * @gem_free_object: deconstructor for drm_gem_objects
> -- 
> 2.10.2
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2017-03-08 10:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-07 20:49 [PATCH 0/3] drm: debugfs: Remove all files automatically on cleanup part 2 Noralf Trønnes
2017-03-07 20:49 ` [PATCH 1/3] drm/msm: Remove msm_debugfs_cleanup() Noralf Trønnes
2017-03-07 20:49 ` [PATCH 2/3] drm/debugfs: Remove the drm_driver.debugfs_cleanup callback Noralf Trønnes
2017-03-08 10:29   ` Daniel Vetter [this message]
2017-03-07 20:49 ` [PATCH 3/3] drm/qxl: Remove qxl_debugfs_remove_files() Noralf Trønnes
2017-03-08  7:45   ` Gerd Hoffmann
2017-03-08  9:52     ` Daniel Vetter
2017-03-08 11:33       ` Gerd Hoffmann
2017-03-08 15:07         ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170308102940.cpqiwdzsb7odw3gb@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=noralf@tronnes.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.