Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751304AbWAIUQv (ORCPT ); Mon, 9 Jan 2006 15:16:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751307AbWAIUQv (ORCPT ); Mon, 9 Jan 2006 15:16:51 -0500 Received: from mx1.mail.ru ([194.67.23.121]:29530 "EHLO mx1.mail.ru") by vger.kernel.org with ESMTP id S1751304AbWAIUQu (ORCPT ); Mon, 9 Jan 2006 15:16:50 -0500 From: Andrey Borzenkov To: linux-ide@vger.kernel.org Subject: [PATCH]trivial: add CDC_RAM to ide-cd capabilities mask Date: Mon, 9 Jan 2006 23:16:47 +0300 User-Agent: KMail/1.9.1 Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601092316.47938.arvidjaar@mail.ru> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 33 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Add CDC-RAM to capability mask. This prevents udev incorrectly reporting RAM capabilities for device. Signed-off-by: Andrey Borzenkov - --- - --- linux-2.6.15/drivers/ide/ide-cd.c.orig 2006-01-03 06:21:10.000000000 +0300 +++ linux-2.6.15/drivers/ide/ide-cd.c 2006-01-09 00:31:32.000000000 +0300 @@ -2905,6 +2905,8 @@ static int ide_cdrom_register (ide_drive 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); -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDwsSvR6LMutpd94wRAuyRAKDVr66aA5cGLoQAliK20dz7FbTP+wCfb8C3 qCm1Sur7eFjCh2i1J95qI68= =i3pt -----END PGP SIGNATURE----- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/