ide: add "optical" to sysfs "media" attribute
authorDanny Kukawka <dkukawka@suse.de>
Tue, 10 Apr 2007 20:39:14 +0000 (22:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 10 Apr 2007 20:39:14 +0000 (22:39 +0200)
Add "optical" to sysfs "media" attribute as already in /proc

Signed-off-by: Danny Kukawka <dkukawka@suse.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide.c

index a6f098fda884719b1b51b0341238a752d1b6d23d..ae5bf2be6f52b158597aadd6b57245b746824f43 100644 (file)
@@ -1962,6 +1962,8 @@ static char *media_string(ide_drive_t *drive)
                return "tape";
        case ide_floppy:
                return "floppy";
+       case ide_optical:
+               return "optical";
        default:
                return "UNKNOWN";
        }