Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87310
b: refs/heads/master
c: f2005e1
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Mar 13, 2008
1 parent bc5cd08 commit 52e6c72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd0e88e5174035d69204636289a21dc4c14238ec
refs/heads/master: f2005e1777614b65d1970924ca1b61e4caccb0d3
5 changes: 0 additions & 5 deletions trunk/drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ static int use_virtual_dma;
*/

static DEFINE_SPINLOCK(floppy_lock);
static struct completion device_release;

static unsigned short virtual_dma_port = 0x3f0;
irqreturn_t floppy_interrupt(int irq, void *dev_id);
Expand Down Expand Up @@ -4144,7 +4143,6 @@ DEVICE_ATTR(cmos,S_IRUGO,floppy_cmos_show,NULL);

static void floppy_device_release(struct device *dev)
{
complete(&device_release);
}

static struct platform_device floppy_device[N_DRIVE];
Expand Down Expand Up @@ -4539,7 +4537,6 @@ void cleanup_module(void)
{
int drive;

init_completion(&device_release);
blk_unregister_region(MKDEV(FLOPPY_MAJOR, 0), 256);
unregister_blkdev(FLOPPY_MAJOR, "fd");

Expand All @@ -4564,8 +4561,6 @@ void cleanup_module(void)

/* eject disk, if any */
fd_eject(0);

wait_for_completion(&device_release);
}

module_param(floppy, charp, 0);
Expand Down

0 comments on commit 52e6c72

Please sign in to comment.