Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258215
b: refs/heads/master
c: ae0c375
h: refs/heads/master
i:
  258213: 23ca87f
  258211: 7c290ed
  258207: 5dcf7cf
v: v3
  • Loading branch information
Mark Rutland authored and Russell King committed Jun 29, 2011
1 parent c7136fb commit 7fcdfc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: f12482c9393da2c1f5cb3217f29aa79c653dd980
refs/heads/master: ae0c3751ab08d3fe039d48935e9ad2c46711b23b
12 changes: 6 additions & 6 deletions trunk/arch/arm/kernel/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ static int __devinit pmu_register(struct platform_device *pdev,
return -EINVAL;
}

if (pmu_devices[type])
pr_warning("registering new PMU device type %d overwrites "
"previous registration!\n", type);
else
pr_info("registered new PMU device of type %d\n",
type);
if (pmu_devices[type]) {
pr_warning("rejecting duplicate registration of PMU device "
"type %d.", type);
return -ENOSPC;
}

pr_info("registered new PMU device of type %d\n", type);
pmu_devices[type] = pdev;
return 0;
}
Expand Down

0 comments on commit 7fcdfc7

Please sign in to comment.