Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252361
b: refs/heads/master
c: 97ceed1
h: refs/heads/master
i:
  252359: 00cbcae
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed May 26, 2011
1 parent b444b07 commit 30238e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e536fbe18f803b6bf9f2ea2d54d918e2b09724d8
refs/heads/master: 97ceed1fc29b601e64af98fd785e25fec4383b12
5 changes: 5 additions & 0 deletions trunk/drivers/amba/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ int amba_device_register(struct amba_device *dev, struct resource *parent)
if (ret)
goto err_out;

/* Hard-coded primecell ID instead of plug-n-play */
if (dev->periphid != 0)
goto skip_probe;

/*
* Dynamically calculate the size of the resource
* and use this for iomap
Expand Down Expand Up @@ -643,6 +647,7 @@ int amba_device_register(struct amba_device *dev, struct resource *parent)
if (ret)
goto err_release;

skip_probe:
ret = device_add(&dev->dev);
if (ret)
goto err_release;
Expand Down

0 comments on commit 30238e9

Please sign in to comment.