drm/etnaviv: Don't set drm_device->platformdev
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 12 Aug 2016 20:48:42 +0000 (22:48 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 16 Aug 2016 14:10:43 +0000 (16:10 +0200)
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@pengutronix.de>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-6-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/etnaviv/etnaviv_drv.c

index fd0ed61565f31086e7d4bcf945041915cf0d3a52..e3164d90399dcfa83c8f4cc0181b87fe3002c361 100644 (file)
@@ -532,8 +532,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");