From: Borislav Petkov Date: Mon, 13 Oct 2008 19:39:35 +0000 (+0200) Subject: ide-floppy: add a debug_mask module parameter X-Git-Tag: v2.6.28-rc1~599^2~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0964dbe60c98f483567ac9a1220f6ab01a15c954;p=linux-2.6-omap-h63xx.git ide-floppy: add a debug_mask module parameter ... with which to control to verbosity of debug messages on module load time. Signed-off-by: Borislav Petkov [bart: no need to zero debug_mask + move module_param() closer debug_mask] [bart: init drive->debug_mask in ide_floppy_probe() not in idefloppy_open()] Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 3de9478fe30..a11ec86925a 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c @@ -49,6 +49,10 @@ #include "ide-floppy.h" +/* module parameters */ +static unsigned long debug_mask; +module_param(debug_mask, ulong, 0644); + /* define to see debug info */ #define IDEFLOPPY_DEBUG_LOG 0 @@ -889,6 +893,8 @@ static int ide_floppy_probe(ide_drive_t *drive) drive->driver_data = floppy; + drive->debug_mask = debug_mask; + idefloppy_setup(drive, floppy); g->minors = 1 << PARTN_BITS;