[PATCH 06/21] drm/etnaviv: Don't set drm_device->platformdev

Lucas Stach l.stach at pengutronix.de
Mon Aug 15 09:07:07 UTC 2016


Am Freitag, den 12.08.2016, 22:48 +0200 schrieb Daniel Vetter:
> It's deprecated and only should be used by drivers which still use
> drm_platform_init, not by anyone else.
> 
> And indeed it's entirely unused and can be nuked.
> 
> Cc: Lucas Stach <l.stach at pengutronix.de>
> Cc: Russell King <rmk+kernel at arm.linux.org.uk>
> Cc: Christian Gmeiner <christian.gmeiner at gmail.com>
> Reviewed-by: Sean Paul <seanpaul at chromium.org>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>

Yeah, I've had this on my list of cleanups to do, so:
Acked-by: Lucas Stach <l.stach at pengutronix.de>

I suppose you are taking this through the misc tree, if not please ping
me.
> ---
>  drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> index ffd1b32caa8d..0c00947d15f2 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> @@ -533,8 +533,6 @@ static int etnaviv_bind(struct device *dev)
>  	if (!drm)
>  		return -ENOMEM;
>  
> -	drm->platformdev = to_platform_device(dev);
> -
>  	priv = kzalloc(sizeof(*priv), GFP_KERNEL);
>  	if (!priv) {
>  		dev_err(dev, "failed to allocate private data\n");




More information about the dri-devel mailing list