aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index a1179e924962..adbe9f76a505 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -82,7 +82,6 @@
82 82
83#define IDEFLOPPY_VERSION "0.99.newide" 83#define IDEFLOPPY_VERSION "0.99.newide"
84 84
85#include <linux/config.h>
86#include <linux/module.h> 85#include <linux/module.h>
87#include <linux/types.h> 86#include <linux/types.h>
88#include <linux/string.h> 87#include <linux/string.h>
@@ -839,7 +838,7 @@ static ide_startstop_t idefloppy_pc_intr (ide_drive_t *drive)
839 "transferred\n", pc->actually_transferred); 838 "transferred\n", pc->actually_transferred);
840 clear_bit(PC_DMA_IN_PROGRESS, &pc->flags); 839 clear_bit(PC_DMA_IN_PROGRESS, &pc->flags);
841 840
842 local_irq_enable(); 841 local_irq_enable_in_hardirq();
843 842
844 if (status.b.check || test_bit(PC_DMA_ERROR, &pc->flags)) { 843 if (status.b.check || test_bit(PC_DMA_ERROR, &pc->flags)) {
845 /* Error detected */ 844 /* Error detected */
@@ -1284,7 +1283,7 @@ static ide_startstop_t idefloppy_do_request (ide_drive_t *drive, struct request
1284 1283
1285 debug_log(KERN_INFO "rq_status: %d, dev: %s, flags: %lx, errors: %d\n", 1284 debug_log(KERN_INFO "rq_status: %d, dev: %s, flags: %lx, errors: %d\n",
1286 rq->rq_status, 1285 rq->rq_status,
1287 rq->rq_disk ? rq->rq_disk->disk_name ? "?", 1286 rq->rq_disk ? rq->rq_disk->disk_name : "?",
1288 rq->flags, rq->errors); 1287 rq->flags, rq->errors);
1289 debug_log(KERN_INFO "sector: %ld, nr_sectors: %ld, " 1288 debug_log(KERN_INFO "sector: %ld, nr_sectors: %ld, "
1290 "current_nr_sectors: %d\n", (long)rq->sector, 1289 "current_nr_sectors: %d\n", (long)rq->sector,
@@ -2176,7 +2175,6 @@ static int ide_floppy_probe(ide_drive_t *drive)
2176 2175
2177 g->minors = 1 << PARTN_BITS; 2176 g->minors = 1 << PARTN_BITS;
2178 g->driverfs_dev = &drive->gendev; 2177 g->driverfs_dev = &drive->gendev;
2179 strcpy(g->devfs_name, drive->devfs_name);
2180 g->flags = drive->removable ? GENHD_FL_REMOVABLE : 0; 2178 g->flags = drive->removable ? GENHD_FL_REMOVABLE : 0;
2181 g->fops = &idefloppy_ops; 2179 g->fops = &idefloppy_ops;
2182 drive->attach = 1; 2180 drive->attach = 1;