lkml.org 
[lkml]   [2003]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: MOD_* can go for floppy
(Bob Miller)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/drivers/block/floppy.c linux-2.5.67-ac1/drivers/block/floppy.c
--- linux-2.5.67/drivers/block/floppy.c 2003-03-26 19:59:50.000000000 +0000
+++ linux-2.5.67-ac1/drivers/block/floppy.c 2003-04-03 23:36:23.000000000 +0100
@@ -4396,11 +4396,9 @@
return 0;
}
spin_unlock_irqrestore(&floppy_usage_lock, flags);
- MOD_INC_USE_COUNT;
if (fd_request_irq()) {
DPRINT("Unable to grab IRQ%d for the floppy driver\n",
FLOPPY_IRQ);
- MOD_DEC_USE_COUNT;
spin_lock_irqsave(&floppy_usage_lock, flags);
usage_count--;
spin_unlock_irqrestore(&floppy_usage_lock, flags);
@@ -4410,7 +4408,6 @@
DPRINT("Unable to grab DMA%d for the floppy driver\n",
FLOPPY_DMA);
fd_free_irq();
- MOD_DEC_USE_COUNT;
spin_lock_irqsave(&floppy_usage_lock, flags);
usage_count--;
spin_unlock_irqrestore(&floppy_usage_lock, flags);
@@ -4459,7 +4456,6 @@
release_region(FDCS->address + 2, 4);
release_region(FDCS->address + 7, 1);
}
- MOD_DEC_USE_COUNT;
spin_lock_irqsave(&floppy_usage_lock, flags);
usage_count--;
spin_unlock_irqrestore(&floppy_usage_lock, flags);
@@ -4527,7 +4523,6 @@
release_region(FDCS->address+7, 1);
}
fdc = old_fdc;
- MOD_DEC_USE_COUNT;
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.028 / U:3.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site