diff options
author | Hong Liu <hong.liu@intel.com> | 2008-04-18 16:26:41 +0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@jbarnes-t61.(none)> | 2008-04-22 18:32:39 -0700 |
commit | c250104c8f81026b4191ec8b2a709ff7ab5baedb (patch) | |
tree | c408002cea4129959ed31f63454a9d61b051b510 | |
parent | 21a93915d8a21518c5da76a739f9459ed7f99d6a (diff) |
fix removing output_attrs
fix a typo in removing output sysfs.
Signed-off-by: Hong Liu <hong.liu@intel.com>
-rw-r--r-- | linux-core/drm_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_sysfs.c b/linux-core/drm_sysfs.c index ef73cc83..8691d156 100644 --- a/linux-core/drm_sysfs.c +++ b/linux-core/drm_sysfs.c @@ -302,7 +302,7 @@ void drm_sysfs_output_remove(struct drm_output *output) int i; DRM_DEBUG("removing \"%s\" from sysfs\n", drm_get_output_name(output)); - for (i = 0; i < i; i++) + for (i = 0; i < ARRAY_SIZE(output_attrs); i++) device_remove_file(&output->kdev, &output_attrs[i]); sysfs_remove_bin_file(&output->kdev.kobj, &edid_attr); device_unregister(&output->kdev); |