[PATCH 6/6] drm: drm/sysfs: Remove device type drm_minor
Heiner Kallweit
hkallweit1 at gmail.com
Sun Sep 8 12:14:43 UTC 2024
This device type is set but not used, so remove it.
Whilst we're at it, constify device type drm_connector.
Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>
---
drivers/gpu/drm/drm_sysfs.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index b73c589c5..45a1c864a 100644
--- a/drivers/gpu/drm/drm_sysfs.c
+++ b/drivers/gpu/drm/drm_sysfs.c
@@ -50,11 +50,7 @@
* drm_connector_unregister().
*/
-static struct device_type drm_sysfs_device_minor = {
- .name = "drm_minor"
-};
-
-static struct device_type drm_sysfs_device_connector = {
+static const struct device_type drm_sysfs_device_connector = {
.name = "drm_connector",
};
@@ -517,7 +513,6 @@ struct device *drm_sysfs_minor_alloc(struct drm_minor *minor)
kdev->devt = MKDEV(DRM_MAJOR, minor->index);
kdev->class = &drm_class;
- kdev->type = &drm_sysfs_device_minor;
}
kdev->parent = minor->dev->dev;
--
2.46.0
More information about the dri-devel
mailing list