提交 35d9b17f 编写于 作者: B Borislav Petkov 提交者: Bartlomiej Zolnierkiewicz

ide-cd: add a debug_mask module parameter

Signed-off-by: NBorislav Petkov <petkovbb@gmail.com>
[bart: no need to zero debug_mask + move it next to module_param()]
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 fc8323f7
......@@ -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)
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册