From: Alexey Dobriyan Date: Fri, 8 Sep 2006 16:47:24 +0000 (-0700) Subject: [PATCH] optical /proc/ide/*/media X-Git-Tag: v2.6.18-rc7~23 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4495c9e5cabc82bb4ce930eb5d3dc7544f3f8389;p=linux-2.6 [PATCH] optical /proc/ide/*/media Sergey Vlasov reported that his "FUJITSU MCC3064AP, ATAPI OPTICAL drive" pops up as UNKNOWN in /proc/ide/*/media . Closes #4145. Signed-off-by: Alexey Dobriyan Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index c12f1b71e9..41b74b13a0 100644 --- a/drivers/ide/ide-proc.c +++ b/drivers/ide/ide-proc.c @@ -376,6 +376,8 @@ static int proc_ide_read_media break; case ide_floppy:media = "floppy\n"; break; + case ide_optical:media = "optical\n"; + break; default: media = "UNKNOWN\n"; break; }