projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc8323f
)
ide-cd: add a debug_mask module parameter
author
Borislav Petkov
<
[email protected]
>
Mon, 13 Oct 2008 19:39:49 +0000
(21:39 +0200)
committer
Bartlomiej Zolnierkiewicz
<
[email protected]
>
Mon, 13 Oct 2008 19:39:49 +0000
(21:39 +0200)
Signed-off-by: Borislav Petkov <
[email protected]
>
[bart: no need to zero debug_mask + move it next to module_param()]
Signed-off-by: Bartlomiej Zolnierkiewicz <
[email protected]
>
drivers/ide/ide-cd.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-cd.c
b/drivers/ide/ide-cd.c
index 52e4bbdfd4a80261919fdc2f9192155e014e4786..91a6b462d3730cd9fe49dcffc52780dd26a62e21 100644
(file)
--- a/
drivers/ide/ide-cd.c
+++ b/
drivers/ide/ide-cd.c
@@
-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",