@@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
mutex_lock(&drm_global_mutex);
+ 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;
@@ -173,6 +173,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.