Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93107
b: refs/heads/master
c: be63c09
h: refs/heads/master
i:
  93105: 3edf6db
  93103: 910bb71
v: v3
  • Loading branch information
Josh Boyer authored and Jeff Garzik committed Apr 25, 2008
1 parent d13d3e6 commit 9a81a62
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 51d4a1cc2e20e2848c6141989f733f0e6548598b
refs/heads/master: be63c09afe9153be6ba4373d1b69848cf2b32268
7 changes: 5 additions & 2 deletions trunk/drivers/net/ibm_newemac/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2562,8 +2562,11 @@ static int __devinit emac_probe(struct of_device *ofdev,
struct device_node **blist = NULL;
int err, i;

/* Skip unused/unwired EMACS */
if (of_get_property(np, "unused", NULL))
/* Skip unused/unwired EMACS. We leave the check for an unused
* property here for now, but new flat device trees should set a
* status property to "disabled" instead.
*/
if (of_get_property(np, "unused", NULL) || !of_device_is_available(np))
return -ENODEV;

/* Find ourselves in the bootlist if we are there */
Expand Down

0 comments on commit 9a81a62

Please sign in to comment.