diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2008-08-09 19:33:32 +0200 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2008-08-09 19:33:32 +0200 |
commit | 2b7feebb8ad5f49391b4f6bd6fc548e4f93b94f3 (patch) | |
tree | 9a218d43589a8a7b79cc6e75d8faeb1a50f9f131 | |
parent | 478e019cb7caa0c336b19a18eb3cb4e81896b493 (diff) |
NV50: call drm_sysfs_hotplug_event when appropriate
-rw-r--r-- | linux-core/drm_sysfs.c | 1 | ||||
-rw-r--r-- | linux-core/nv50_kms_wrapper.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/drm_sysfs.c b/linux-core/drm_sysfs.c index 5c384a60..3b217342 100644 --- a/linux-core/drm_sysfs.c +++ b/linux-core/drm_sysfs.c @@ -450,6 +450,7 @@ void drm_sysfs_hotplug_event(struct drm_device *dev) kobject_uevent_env(&dev->primary->kdev.kobj, KOBJ_CHANGE, envp); } +EXPORT_SYMBOL(drm_sysfs_hotplug_event); static struct device_attribute dri_attrs[] = { __ATTR(dri_library_name, S_IRUGO, show_dri, NULL), diff --git a/linux-core/nv50_kms_wrapper.c b/linux-core/nv50_kms_wrapper.c index 77271c1b..bf747a4c 100644 --- a/linux-core/nv50_kms_wrapper.c +++ b/linux-core/nv50_kms_wrapper.c @@ -970,6 +970,9 @@ static enum drm_connector_status nv50_kms_connector_detect(struct drm_connector /* notify fb of changes */ dev->mode_config.funcs->fb_changed(dev); + + /* sent a hotplug event when appropriate. */ + drm_sysfs_hotplug_event(dev); } return drm_connector->status; |