Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93565
b: refs/heads/master
c: cb5528a
h: refs/heads/master
i:
  93563: 1e8f663
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent 57e294d commit 1bcb424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54c05395273678fe23e9169a435fdc15ee17535e
refs/heads/master: cb5528ab19ece76be5299b33746ca7d58c187a26
7 changes: 7 additions & 0 deletions trunk/drivers/ide/legacy/falconide.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <asm/atariints.h>
#include <asm/atari_stdma.h>

#define DRV_NAME "falconide"

/*
* Base of the IDE interface
Expand Down Expand Up @@ -74,6 +75,11 @@ static int __init falconide_init(void)

printk(KERN_INFO "ide: Falcon IDE controller\n");

if (!request_mem_region(ATA_HD_BASE, 0x40, DRV_NAME)) {
printk(KERN_ERR "%s: resources busy\n", DRV_NAME);
return -EBUSY;
}

falconide_setup_ports(&hw);

hwif = ide_find_port();
Expand All @@ -83,6 +89,7 @@ static int __init falconide_init(void)

ide_init_port_data(hwif, index);
ide_init_port_hw(hwif, &hw);
hwif->mmio = 1;

ide_get_lock(NULL, NULL);
ide_device_add(idx, NULL);
Expand Down

0 comments on commit 1bcb424

Please sign in to comment.