diff options
Diffstat (limited to 'atahpt.c')
-rw-r--r-- | atahpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,7 +60,6 @@ static int atahpt_shutdown(void *data) { /* Flash access is disabled automatically by PCI restore. */ pci_cleanup(pacc); - release_io_perms(); return 0; } @@ -68,7 +67,8 @@ int atahpt_init(void) { uint32_t reg32; - get_io_perms(); + if (rget_io_perms()) + return 1; io_base_addr = pcidev_init(PCI_BASE_ADDRESS_4, ata_hpt); |