[PATCH] ide: add "optical" to sysfs "media" attribute

From: Danny Kukawka
Date: Mon Apr 02 2007 - 07:34:12 EST


From: Danny Kukawka <dkukawka@xxxxxxx>
Subject: ide: add "optical" to sysfs "media" attribute

Add "optical" to sysfs "media" attribute as already in /proc

Signed-off-by: Danny Kukawka <dkukawka@xxxxxxx>
--- linux-2.6.21-rc1/drivers/ide/ide.c 2007-03-21 14:07:18.000000000 +0100
+++ linux-2.6.21-rc1/drivers/ide/ide.c 2007-03-21 14:09:39.000000000 +0100
@@ -1952,6 +1952,8 @@
return "tape";
case ide_floppy:
return "floppy";
+ case ide_optical:
+ return "optical";
default:
return "UNKNOWN";
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/