summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_drv.c6
-rw-r--r--include/drm/drm_drv.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 243cacb3575c..cd3308cfa918 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -914,6 +914,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
else
drm_debugfs_dev_register(dev);
+ if (dev->driver->load) {
+ if (!drm_core_check_feature(dev, DRIVER_LEGACY))
+ DRM_INFO("drm driver %s is using deprecated ->load callback\n",
+ dev->driver->name);
+ }
+
ret = drm_minor_register(dev, DRM_MINOR_RENDER);
if (ret)
goto err_minors;
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h
index 8878260d7529..44a99c028c43 100644
--- a/include/drm/drm_drv.h
+++ b/include/drm/drm_drv.h
@@ -188,6 +188,9 @@ struct drm_driver {
*
* This is deprecated, do not use!
*
+ * FIXME: A few non-DRIVER_LEGACY drivers still use this, and should be
+ * converted.
+ *
* Returns:
*
* Zero on success, non-zero value on failure.