fix removing output_attrs
authorHong Liu <hong.liu@intel.com>
Fri, 18 Apr 2008 08:26:41 +0000 (16:26 +0800)
committerJesse Barnes <jbarnes@jbarnes-t61.(none)>
Wed, 23 Apr 2008 01:32:39 +0000 (18:32 -0700)
fix a typo in removing output sysfs.

Signed-off-by: Hong Liu <hong.liu@intel.com>
linux-core/drm_sysfs.c

index ef73cc8..8691d15 100644 (file)
@@ -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);