diff mbox

drm: sti: use drm_platform_set_busid() helper

Message ID 1465832895-10485-1-git-send-email-benjamin.gaignard@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Benjamin Gaignard June 13, 2016, 3:48 p.m. UTC
Fill set_busid field with drm_platform_set_busid helper function

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
---
 drivers/gpu/drm/sti/sti_drv.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Thierry Reding June 13, 2016, 4 p.m. UTC | #1
On Mon, Jun 13, 2016 at 05:48:15PM +0200, Benjamin Gaignard wrote:
> Fill set_busid field with drm_platform_set_busid helper function
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
> ---
>  drivers/gpu/drm/sti/sti_drv.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
> index b440617..98d67b4 100644
> --- a/drivers/gpu/drm/sti/sti_drv.c
> +++ b/drivers/gpu/drm/sti/sti_drv.c
> @@ -304,6 +304,7 @@ static struct drm_driver sti_driver = {
>  	.driver_features = DRIVER_HAVE_IRQ | DRIVER_MODESET |
>  	    DRIVER_GEM | DRIVER_PRIME | DRIVER_ATOMIC,
>  	.load = sti_load,
> +	.set_busid = drm_platform_set_busid,

You're not supposed to use these anymore. Use drm_dev_alloc() and
drm_dev_register() instead.

Thierry
diff mbox

Patch

diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index b440617..98d67b4 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -304,6 +304,7 @@  static struct drm_driver sti_driver = {
 	.driver_features = DRIVER_HAVE_IRQ | DRIVER_MODESET |
 	    DRIVER_GEM | DRIVER_PRIME | DRIVER_ATOMIC,
 	.load = sti_load,
+	.set_busid = drm_platform_set_busid,
 	.gem_free_object_unlocked = drm_gem_cma_free_object,
 	.gem_vm_ops = &drm_gem_cma_vm_ops,
 	.dumb_create = drm_gem_cma_dumb_create,