Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6460
b: refs/heads/master
c: 5ff98ae
h: refs/heads/master
v: v3
  • Loading branch information
Joel Schopp authored and Paul Mackerras committed Aug 30, 2005
1 parent afa9eb5 commit c123251
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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: 717522ff44f1fbee5ea09e83d7cd4b5c956e30f9
refs/heads/master: 5ff98ae18bec792d77bfea801aa4b3385b98b355
2 changes: 0 additions & 2 deletions trunk/arch/ppc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ void of_device_unregister(struct of_device *ofdev)
struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id)
{
struct of_device *dev;
u32 *reg;

dev = kmalloc(sizeof(*dev), GFP_KERNEL);
if (!dev)
Expand All @@ -250,7 +249,6 @@ struct of_device* of_platform_device_create(struct device_node *np, const char *
dev->dev.bus = &of_platform_bus_type;
dev->dev.release = of_release_dev;

reg = (u32 *)get_property(np, "reg", NULL);
strlcpy(dev->dev.bus_id, bus_id, BUS_ID_SIZE);

if (of_device_register(dev) != 0) {
Expand Down

0 comments on commit c123251

Please sign in to comment.