diff options
author | Andrey Borzenkov <arvidjaar@mail.ru> | 2006-01-10 11:27:00 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 08:38:19 -0800 |
commit | c0400dc507a4345357fc25f13e8ac929287688a8 (patch) | |
tree | d4940df7951f3bfee2b0495d24c4af68c55b9e5e /drivers/ide | |
parent | daef265f1590cf3e6de989d074041a280c82d58b (diff) | |
download | kernel_samsung_espresso10-c0400dc507a4345357fc25f13e8ac929287688a8.zip kernel_samsung_espresso10-c0400dc507a4345357fc25f13e8ac929287688a8.tar.gz kernel_samsung_espresso10-c0400dc507a4345357fc25f13e8ac929287688a8.tar.bz2 |
[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/ide')
-rw-r--r-- | drivers/ide/ide-cd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index e4d55ad..9b2ebd2 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) devinfo->mask |= CDC_CLOSE_TRAY; if (!CDROM_CONFIG_FLAGS(drive)->mo_drive) devinfo->mask |= CDC_MO_DRIVE; + if (!CDROM_CONFIG_FLAGS(drive)->ram) + devinfo->mask |= CDC_RAM; devinfo->disk = info->disk; return register_cdrom(devinfo); |