Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324421
b: refs/heads/master
c: 1b8cb92
h: refs/heads/master
i:
  324419: 23fa203
v: v3
  • Loading branch information
Peter Ujfalusi authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent 5c64dca commit a1537fc
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 45f035ab9b8f45aaf1eb2213218b7e9c14af3fc2
refs/heads/master: 1b8cb9290671a4c025c16a51d316031f9ec04976
3 changes: 3 additions & 0 deletions trunk/drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ struct resource *platform_get_resource_byname(struct platform_device *dev,
for (i = 0; i < dev->num_resources; i++) {
struct resource *r = &dev->resource[i];

if (unlikely(!r->name))
continue;

if (type == resource_type(r) && !strcmp(r->name, name))
return r;
}
Expand Down

0 comments on commit a1537fc

Please sign in to comment.