Skip to content

Commit

Permalink
ARM: perf: fix prototype of release_pmu
Browse files Browse the repository at this point in the history
Commit  f12482c ("ARM: 6974/1: pmu: refactor reservation") changed the
prototype of release_pmu, but missed the stub for when
CONFIG_CPU_HAS_PMU is not selected by the platform.

This patch changes the prototype of the stub, preventing possible build
failures when CONFIG_CPU_HAS_PMU is not selected.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Mark Rutland authored and Will Deacon committed Aug 12, 2011
1 parent 0ac8e58 commit 49bef83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/include/asm/pmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ reserve_pmu(enum arm_pmu_type device)
}

static inline int
release_pmu(struct platform_device *pdev)
release_pmu(enum arm_pmu_type device)
{
return -ENODEV;
}
Expand Down

0 comments on commit 49bef83

Please sign in to comment.