summaryrefslogtreecommitdiffstats
path: root/drivers/video/aty
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-07-27 20:46:05 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-28 01:26:18 +0200
commit3ca34fcbfbf8a7cbe99d54ae81c4e28fdc6f4ac6 (patch)
tree767ed7d2cf9932e015f4b5753a1a849ca47a2ce3 /drivers/video/aty
parent[PATCH] fbmem: use unregister_chrdev() on unload (diff)
downloadlinux-3ca34fcbfbf8a7cbe99d54ae81c4e28fdc6f4ac6.tar.xz
linux-3ca34fcbfbf8a7cbe99d54ae81c4e28fdc6f4ac6.zip
[PATCH] radeonfb: clean up EDID sysfs attribute
radeonfb does not clean up EDID sysfs attribute Signed-off-by: Jon Smirl <jonsmirl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/aty')
-rw-r--r--drivers/video/aty/radeon_base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c
index 47a6b12bc968..e7e8b52014c3 100644
--- a/drivers/video/aty/radeon_base.c
+++ b/drivers/video/aty/radeon_base.c
@@ -2521,6 +2521,11 @@ static void __devexit radeonfb_pci_unregister (struct pci_dev *pdev)
radeonfb_pm_exit(rinfo);
+ if (rinfo->mon1_EDID)
+ sysfs_remove_bin_file(&rinfo->pdev->dev.kobj, &edid1_attr);
+ if (rinfo->mon2_EDID)
+ sysfs_remove_bin_file(&rinfo->pdev->dev.kobj, &edid2_attr);
+
#if 0
/* restore original state
*