diff options
| -rw-r--r-- | drivers/block/floppy.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 5109fa37c662..ad1d7065a1b2 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
| @@ -4177,6 +4177,11 @@ static int __init floppy_init(void) | |||
| 4177 | int i, unit, drive; | 4177 | int i, unit, drive; |
| 4178 | int err, dr; | 4178 | int err, dr; |
| 4179 | 4179 | ||
| 4180 | #if defined(CONFIG_PPC_MERGE) | ||
| 4181 | if (check_legacy_ioport(FDC1)) | ||
| 4182 | return -ENODEV; | ||
| 4183 | #endif | ||
| 4184 | |||
| 4180 | raw_cmd = NULL; | 4185 | raw_cmd = NULL; |
| 4181 | 4186 | ||
| 4182 | for (dr = 0; dr < N_DRIVE; dr++) { | 4187 | for (dr = 0; dr < N_DRIVE; dr++) { |
| @@ -4234,13 +4239,6 @@ static int __init floppy_init(void) | |||
| 4234 | } | 4239 | } |
| 4235 | 4240 | ||
| 4236 | use_virtual_dma = can_use_virtual_dma & 1; | 4241 | use_virtual_dma = can_use_virtual_dma & 1; |
| 4237 | #if defined(CONFIG_PPC_MERGE) | ||
| 4238 | if (check_legacy_ioport(FDC1)) { | ||
| 4239 | del_timer(&fd_timeout); | ||
| 4240 | err = -ENODEV; | ||
| 4241 | goto out_unreg_region; | ||
| 4242 | } | ||
| 4243 | #endif | ||
| 4244 | fdc_state[0].address = FDC1; | 4242 | fdc_state[0].address = FDC1; |
| 4245 | if (fdc_state[0].address == -1) { | 4243 | if (fdc_state[0].address == -1) { |
| 4246 | del_timer(&fd_timeout); | 4244 | del_timer(&fd_timeout); |
