diff mbox series

[RESEND] drm/udl: Replace drm_dev_unref with drm_dev_put

Message ID 20180926120212.25359-1-tzimmermann@suse.de (mailing list archive)
State New, archived
Headers show
Series [RESEND] drm/udl: Replace drm_dev_unref with drm_dev_put | expand

Commit Message

Thomas Zimmermann Sept. 26, 2018, 12:02 p.m. UTC
This patch unifies the naming of DRM functions for reference counting
of struct drm_device. The resulting code is more aligned with the rest
of the Linux kernel interfaces.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/gpu/drm/udl/udl_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.19.0

Comments

Sean Paul Sept. 26, 2018, 1:38 p.m. UTC | #1
On Wed, Sep 26, 2018 at 02:02:12PM +0200, Thomas Zimmermann wrote:
> This patch unifies the naming of DRM functions for reference counting
> of struct drm_device. The resulting code is more aligned with the rest
> of the Linux kernel interfaces.
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>

Applied to drm-misc-next.

Thanks for your patch!

Sean

> ---
>  drivers/gpu/drm/udl/udl_drv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c
> index 9ef515df724b..a63e3011e971 100644
> --- a/drivers/gpu/drm/udl/udl_drv.c
> +++ b/drivers/gpu/drm/udl/udl_drv.c
> @@ -94,7 +94,7 @@ static int udl_usb_probe(struct usb_interface *interface,
>  	return 0;
> 
>  err_free:
> -	drm_dev_unref(dev);
> +	drm_dev_put(dev);
>  	return r;
>  }
> 
> --
> 2.19.0
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c
index 9ef515df724b..a63e3011e971 100644
--- a/drivers/gpu/drm/udl/udl_drv.c
+++ b/drivers/gpu/drm/udl/udl_drv.c
@@ -94,7 +94,7 @@  static int udl_usb_probe(struct usb_interface *interface,
 	return 0;

 err_free:
-	drm_dev_unref(dev);
+	drm_dev_put(dev);
 	return r;
 }