summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-07-27 11:46:05 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 16:26:18 -0700
commit3ca34fcbfbf8a7cbe99d54ae81c4e28fdc6f4ac6 (patch)
tree767ed7d2cf9932e015f4b5753a1a849ca47a2ce3
parent5a340cce09f5dfd89b7b7eea1a52d1a2d1c99a2e (diff)
downloadblackbird-op-linux-3ca34fcbfbf8a7cbe99d54ae81c4e28fdc6f4ac6.tar.gz
blackbird-op-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>
-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
*
OpenPOWER on IntegriCloud