Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105747
b: refs/heads/master
c: 96cc112
h: refs/heads/master
i:
  105745: 1d1f3e5
  105743: be75555
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 24, 2008
1 parent 3b873fd commit 2bb7b6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: a0f403bc58dcaa118f02ec70c3ecfec1bc26e445
refs/heads/master: 96cc112c09b3c6674da01ef8b377f7a916883ea2
8 changes: 6 additions & 2 deletions trunk/drivers/ide/legacy/gayle.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static int __init gayle_init(void)
unsigned long phys_base, res_start, res_n;
unsigned long base, ctrlport, irqport;
ide_ack_intr_t *ack_intr;
int a4000, i;
int a4000, i, rc;
hw_regs_t hw[GAYLE_NUM_HWIFS], *hws[] = { NULL, NULL, NULL, NULL };

if (!MACH_IS_AMIGA)
Expand Down Expand Up @@ -179,7 +179,11 @@ static int __init gayle_init(void)
hws[i] = &hw[i];
}

return ide_host_add(NULL, hws, NULL);
rc = ide_host_add(NULL, hws, NULL);
if (rc)
release_mem_region(res_start, res_n);

return rc;
}

module_init(gayle_init);
Expand Down

0 comments on commit 2bb7b6a

Please sign in to comment.