aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@googlemail.com>2008-10-13 15:39:49 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:49 -0400
commit35d9b17fe2dc48514fa3fbeec910e54103d13333 (patch)
treeabaf843c4558eb317bcdfa4add041b9c8f9b5c78 /drivers
parentfc8323f793852ca1fcb58d96512fd71d39af2e9b (diff)
ide-cd: add a debug_mask module parameter
Signed-off-by: Borislav Petkov <petkovbb@gmail.com> [bart: no need to zero debug_mask + move it next to module_param()] Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/ide-cd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 52e4bbdfd4a8..91a6b462d373 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -2197,8 +2197,11 @@ static struct block_device_operations idecd_ops = {
2197 2197
2198/* module options */ 2198/* module options */
2199static char *ignore; 2199static char *ignore;
2200
2201module_param(ignore, charp, 0400); 2200module_param(ignore, charp, 0400);
2201
2202static unsigned long debug_mask;
2203module_param(debug_mask, ulong, 0644);
2204
2202MODULE_DESCRIPTION("ATAPI CD-ROM Driver"); 2205MODULE_DESCRIPTION("ATAPI CD-ROM Driver");
2203 2206
2204static int ide_cd_probe(ide_drive_t *drive) 2207static int ide_cd_probe(ide_drive_t *drive)
@@ -2225,6 +2228,9 @@ static int ide_cd_probe(ide_drive_t *drive)
2225 goto failed; 2228 goto failed;
2226 } 2229 }
2227 } 2230 }
2231
2232 drive->debug_mask = debug_mask;
2233
2228 info = kzalloc(sizeof(struct cdrom_info), GFP_KERNEL); 2234 info = kzalloc(sizeof(struct cdrom_info), GFP_KERNEL);
2229 if (info == NULL) { 2235 if (info == NULL) {
2230 printk(KERN_ERR PFX "%s: Can't allocate a cdrom structure\n", 2236 printk(KERN_ERR PFX "%s: Can't allocate a cdrom structure\n",