Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754527AbYHWNI5 (ORCPT ); Sat, 23 Aug 2008 09:08:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752809AbYHWNIp (ORCPT ); Sat, 23 Aug 2008 09:08:45 -0400 Received: from fk-out-0910.google.com ([209.85.128.184]:41297 "EHLO fk-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752589AbYHWNIo (ORCPT ); Sat, 23 Aug 2008 09:08:44 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=ODUjW33H+LdkzKeaFqWHpGF90aHB+JJE6pfiYQP+XYF3wIMcqC9abwh21co0wixiXC 33P9KV2yAnbOzF5MDDqzcXOLpQ12pjLOG0cDLawV0Y5/gX7cJpRaOGLuDOcRfUy1P/dr Ye/cfDzrkUBgc6LGMx7xwTrMQiUMuGaou6gdo= To: Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, Borislav Petkov Subject: [PATCH 2/2] ide-cd: add a debug_mask module parameter Date: Sat, 23 Aug 2008 15:08:43 +0200 Message-Id: <1219496923-20868-2-git-send-email-petkovbb@gmail.com> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1219496923-20868-1-git-send-email-petkovbb@gmail.com> References: <1219496923-20868-1-git-send-email-petkovbb@gmail.com> From: Borislav Petkov Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1245 Lines: 47 Signed-off-by: Borislav Petkov --- drivers/ide/ide-cd.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index cca1011..5e0b9cd 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -53,6 +53,8 @@ #include "ide-cd.h" +static unsigned long debug_mask = 0x0; + #define IDECD_DEBUG_LOG 1 #if IDECD_DEBUG_LOG @@ -2192,8 +2194,9 @@ static struct block_device_operations idecd_ops = { /* module options */ static char *ignore; - module_param(ignore, charp, 0400); +module_param(debug_mask, ulong, 0644); + MODULE_DESCRIPTION("ATAPI CD-ROM Driver"); static int ide_cd_probe(ide_drive_t *drive) @@ -2220,6 +2223,9 @@ static int ide_cd_probe(ide_drive_t *drive) goto failed; } } + + drive->debug_mask = debug_mask; + info = kzalloc(sizeof(struct cdrom_info), GFP_KERNEL); if (info == NULL) { printk(KERN_ERR PFX "%s: Can't allocate a cdrom structure\n", -- 1.5.5.4 -- 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/