Skip to content

Commit

Permalink
ide-cd: add a debug_mask module parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Oct 13, 2008
1 parent fc8323f commit 35d9b17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2197,8 +2197,11 @@ static struct block_device_operations idecd_ops = {

/* module options */
static char *ignore;

module_param(ignore, charp, 0400);

static unsigned long debug_mask;
module_param(debug_mask, ulong, 0644);

MODULE_DESCRIPTION("ATAPI CD-ROM Driver");

static int ide_cd_probe(ide_drive_t *drive)
Expand All @@ -2225,6 +2228,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",
Expand Down

0 comments on commit 35d9b17

Please sign in to comment.