Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126443
b: refs/heads/master
c: a32296f
h: refs/heads/master
i:
  126441: f6f52d7
  126439: ec8eb03
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 6, 2009
1 parent 6213fc6 commit dc37b63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 07af5a5b0241422e4ca2dd114eaa1d7ad0165cb5
refs/heads/master: a32296f93821497d794ab8e1312d677717479777
9 changes: 5 additions & 4 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,9 +1391,11 @@ static void ide_free_port_slot(int idx)
struct ide_host *ide_host_alloc(const struct ide_port_info *d, hw_regs_t **hws)
{
struct ide_host *host;
struct device *dev = hws[0] ? hws[0]->dev : NULL;
int node = dev ? dev_to_node(dev) : -1;
int i;

host = kzalloc(sizeof(*host), GFP_KERNEL);
host = kzalloc_node(sizeof(*host), GFP_KERNEL, node);
if (host == NULL)
return NULL;

Expand All @@ -1404,7 +1406,7 @@ struct ide_host *ide_host_alloc(const struct ide_port_info *d, hw_regs_t **hws)
if (hws[i] == NULL)
continue;

hwif = kzalloc(sizeof(*hwif), GFP_KERNEL);
hwif = kzalloc_node(sizeof(*hwif), GFP_KERNEL, node);
if (hwif == NULL)
continue;

Expand All @@ -1429,8 +1431,7 @@ struct ide_host *ide_host_alloc(const struct ide_port_info *d, hw_regs_t **hws)
return NULL;
}

if (hws[0])
host->dev[0] = hws[0]->dev;
host->dev[0] = dev;

if (d) {
host->init_chipset = d->init_chipset;
Expand Down

0 comments on commit dc37b63

Please sign in to comment.