aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrey Borzenkov <arvidjaar@mail.ru>2006-01-10 05:27:00 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:38:19 -0500
commitc0400dc507a4345357fc25f13e8ac929287688a8 (patch)
treed4940df7951f3bfee2b0495d24c4af68c55b9e5e /drivers
parentdaef265f1590cf3e6de989d074041a280c82d58b (diff)
[PATCH] ide-cd: clear random-write capability it not supported
Add CDC-RAM to capability mask. This prevents udev incorrectly reporting RAM capabilities for device. Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru> Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/ide-cd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index e4d55ad32d2f..9b2ebd219ad0 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -2895,6 +2895,8 @@ static int ide_cdrom_register (ide_drive_t *drive, int nslots)
2895 devinfo->mask |= CDC_CLOSE_TRAY; 2895 devinfo->mask |= CDC_CLOSE_TRAY;
2896 if (!CDROM_CONFIG_FLAGS(drive)->mo_drive) 2896 if (!CDROM_CONFIG_FLAGS(drive)->mo_drive)
2897 devinfo->mask |= CDC_MO_DRIVE; 2897 devinfo->mask |= CDC_MO_DRIVE;
2898 if (!CDROM_CONFIG_FLAGS(drive)->ram)
2899 devinfo->mask |= CDC_RAM;
2898 2900
2899 devinfo->disk = info->disk; 2901 devinfo->disk = info->disk;
2900 return register_cdrom(devinfo); 2902 return register_cdrom(devinfo);