diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2008-06-26 21:28:29 +0200 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2008-06-26 21:28:29 +0200 |
commit | 13943fe5823c45759091c1a1f487a4abe377421e (patch) | |
tree | 81f26a67324de86703e1a9c8e825ad01337884a8 /linux-core/intel_crt.c | |
parent | 4d85d5d25116304e476849ee64c206ffb3a7f372 (diff) |
modesetting-101: Make dpms property optional + misc cleanup.
- intel_crt seems the only one to provide it, so init it there.
Diffstat (limited to 'linux-core/intel_crt.c')
-rw-r--r-- | linux-core/intel_crt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/intel_crt.c b/linux-core/intel_crt.c index b9e8ee63..c7509d5e 100644 --- a/linux-core/intel_crt.c +++ b/linux-core/intel_crt.c @@ -292,5 +292,9 @@ void intel_crt_init(struct drm_device *dev) drm_encoder_helper_add(&intel_output->enc, &intel_crt_helper_funcs); drm_connector_helper_add(connector, &intel_crt_connector_helper_funcs); + /* create dpms property */ + drm_mode_create_dpms_property(dev); + drm_connector_attach_property(connector, dev->mode_config.dpms_property, 0); + drm_sysfs_connector_add(connector); } |