summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHong Liu <hong.liu@intel.com>2008-04-18 16:26:41 +0800
committerJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-04-22 18:32:39 -0700
commitc250104c8f81026b4191ec8b2a709ff7ab5baedb (patch)
treec408002cea4129959ed31f63454a9d61b051b510
parent21a93915d8a21518c5da76a739f9459ed7f99d6a (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.c2
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);