summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_platform.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-10-15 18:03:42 +0000
committerDave Airlie <airlied@redhat.com>2012-10-23 10:15:11 +1000
commita16d4f86019a72b3e8cbb89abff769b25b53ab69 (patch)
treea028c3d9117b930e555159c0a0701efdb4e084e1 /drivers/gpu/drm/drm_platform.c
parent08bce0ac3bdc9d8e57d3f4b8edf3e787e623eccc (diff)
drm: platform: Don't initialize driver-private data
Platform device drivers usually use the driver-private data for their own purposes. Having it overwritten by drm_platform_init() is confusing and error-prone. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_platform.c')
-rw-r--r--drivers/gpu/drm/drm_platform.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c
index aaeb6f8d69ce..b8a282ea8751 100644
--- a/drivers/gpu/drm/drm_platform.c
+++ b/drivers/gpu/drm/drm_platform.c
@@ -64,7 +64,6 @@ int drm_get_platform_dev(struct platform_device *platdev,
}
if (drm_core_check_feature(dev, DRIVER_MODESET)) {
- dev_set_drvdata(&platdev->dev, dev);
ret = drm_get_minor(dev, &dev->control, DRM_MINOR_CONTROL);
if (ret)
goto err_g1;