Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351164
b: refs/heads/master
c: 76b8a0e
h: refs/heads/master
v: v3
  • Loading branch information
Mark Rutland authored and Will Deacon committed Jan 18, 2013
1 parent 914497a commit d4e8a34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 40c390c768f898497e17d934f6715d516ff67294
refs/heads/master: 76b8a0e4c8bda5f03574b8a904331266d162c796
15 changes: 10 additions & 5 deletions trunk/arch/arm/kernel/perf_event_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,22 @@ static int cpu_pmu_device_probe(struct platform_device *pdev)
}

if (ret) {
pr_info("failed to register PMU devices!");
kfree(pmu);
return ret;
pr_info("failed to probe PMU!");
goto out_free;
}

cpu_pmu = pmu;
cpu_pmu->plat_device = pdev;
cpu_pmu_init(cpu_pmu);
armpmu_register(cpu_pmu, PERF_TYPE_RAW);
ret = armpmu_register(cpu_pmu, PERF_TYPE_RAW);

return 0;
if (!ret)
return 0;

out_free:
pr_info("failed to register PMU devices!");
kfree(pmu);
return ret;
}

static struct platform_driver cpu_pmu_driver = {
Expand Down

0 comments on commit d4e8a34

Please sign in to comment.