diff options
author | Dave Airlie <airlied@redhat.com> | 2012-02-20 09:16:40 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-15 09:35:32 -0400 |
commit | cbc7e22151d99ed1dd7649d268ad3d81b9e6255a (patch) | |
tree | 18ea223883722b1e7b6691f452df640d0775e4d2 /include/drm/drm_crtc.h | |
parent | 1828fe6c5f593b835197edd30a28d80635238ab3 (diff) |
drm/modeset: add helper to unplug all connectors from sysfs
In order to get correct ordering at hot-unplug for userspace,
we need to tear down all the sysfs bits at the correct time.
This adds a helper to allow drivers to remove the sysfs nodes
for all connectors.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 9595c2c9adc7..3401761d6391 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -826,6 +826,8 @@ extern int drm_connector_init(struct drm_device *dev, | |||
826 | int connector_type); | 826 | int connector_type); |
827 | 827 | ||
828 | extern void drm_connector_cleanup(struct drm_connector *connector); | 828 | extern void drm_connector_cleanup(struct drm_connector *connector); |
829 | /* helper to unplug all connectors from sysfs for device */ | ||
830 | extern void drm_connector_unplug_all(struct drm_device *dev); | ||
829 | 831 | ||
830 | extern int drm_encoder_init(struct drm_device *dev, | 832 | extern int drm_encoder_init(struct drm_device *dev, |
831 | struct drm_encoder *encoder, | 833 | struct drm_encoder *encoder, |