2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00

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 <petkovbb@gmail.com>
[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 <bzolnier@gmail.com>
This commit is contained in:
Borislav Petkov 2008-10-13 21:39:35 +02:00 committed by Bartlomiej Zolnierkiewicz
parent 7b35572628
commit 0964dbe60c

View File

@ -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;