Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295341
b: refs/heads/master
c: c0f72f8
h: refs/heads/master
i:
  295339: 60a256e
v: v3
  • Loading branch information
Russell King committed Jan 25, 2012
1 parent 35a48a2 commit 94077c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: d5dc9271b25822f36d299f8cab985379743424b9
refs/heads/master: c0f72f8a9279f82520fc476c32c09f693661c5f4
6 changes: 3 additions & 3 deletions trunk/drivers/of/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static struct amba_device *of_amba_device_create(struct device_node *node,
if (!of_device_is_available(node))
return NULL;

dev = kzalloc(sizeof(*dev), GFP_KERNEL);
dev = amba_device_alloc(NULL, 0, 0);
if (!dev)
return NULL;

Expand Down Expand Up @@ -283,14 +283,14 @@ static struct amba_device *of_amba_device_create(struct device_node *node,
if (ret)
goto err_free;

ret = amba_device_register(dev, &iomem_resource);
ret = amba_device_add(dev, &iomem_resource);
if (ret)
goto err_free;

return dev;

err_free:
kfree(dev);
amba_device_put(dev);
return NULL;
}
#else /* CONFIG_ARM_AMBA */
Expand Down

0 comments on commit 94077c4

Please sign in to comment.