Message ID | 57e2153a-4128-4bdb-8e15-59dfe3dd8a9e@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | drm: Series with core improvements/refactorings | expand |
On Sat, Nov 02, 2024 at 10:47:25PM +0100, Heiner Kallweit wrote: > Only user of this device type was struct dev_pm_ops of drm_class which > was removed in d14d2a8453d6 ("drm: Remove dev_pm_ops from drm_class"). > So remove this now unused device type. > > Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> > --- > drivers/gpu/drm/drm_sysfs.c | 5 ----- > 1 file changed, 5 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 3bc90fe5c..82e2d0c0d 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c @@ -50,10 +50,6 @@ * drm_connector_unregister(). */ -static struct device_type drm_sysfs_device_minor = { - .name = "drm_minor" -}; - static struct device_type drm_sysfs_device_connector = { .name = "drm_connector", }; @@ -531,7 +527,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;
Only user of this device type was struct dev_pm_ops of drm_class which was removed in d14d2a8453d6 ("drm: Remove dev_pm_ops from drm_class"). So remove this now unused device type. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> --- drivers/gpu/drm/drm_sysfs.c | 5 ----- 1 file changed, 5 deletions(-)