Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25871
b: refs/heads/master
c: 132058f
h: refs/heads/master
i:
  25869: d96fdf3
  25867: ca57c2c
  25863: ebb2857
  25855: f6e42e6
v: v3
  • Loading branch information
Vitaly Bordug authored and Paul Mackerras committed Apr 13, 2006
1 parent ebf885f commit 224634b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 49c28e4e40be73019481f3c13a5966e0cc8f5a9d
refs/heads/master: 132058f78a1bc8cce2c5a40245365938d51832fe
9 changes: 5 additions & 4 deletions trunk/arch/ppc/syslib/ppc_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,13 @@ void platform_notify_map(const struct platform_notify_dev_map *map,
while (map->bus_id != NULL) {
idx = -1;
s = strrchr(dev->bus_id, '.');
if (s != NULL)
if (s != NULL) {
idx = (int)simple_strtol(s + 1, NULL, 10);
else
len = s - dev->bus_id;
} else {
s = dev->bus_id;

len = s - dev->bus_id;
len = strlen(dev->bus_id);
}

if (!strncmp(dev->bus_id, map->bus_id, len)) {
pdev = container_of(dev, struct platform_device, dev);
Expand Down

0 comments on commit 224634b

Please sign in to comment.