drm: Reorder drm_sysfs_connector_remove() vs. drm_debugfs_connector_remove()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 29 Aug 2023 11:39:09 +0000 (14:39 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Sep 2023 11:45:00 +0000 (14:45 +0300)
commit83a30739970857d3a2d8b8f2f62f829231347b5f
treeea864c2a3040b99e116ef1700f23ff0dc0526658
parenta3f9e4bc1ec9d8f1e352eb7c1cbaea3168246be7
drm: Reorder drm_sysfs_connector_remove() vs. drm_debugfs_connector_remove()

Use the standard onion peeling approach and call
drm_debugfs_connector_remove() and
drm_sysfs_connector_remove() in the reverse order in
drm_connector_unregister() than what we called their
add counterpartse in drm_connector_register().

The error unwiding in drm_connector_register() is
already doing this the correct way around.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230829113920.13713-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de> #irc
drivers/gpu/drm/drm_connector.c