diff options
author | Mischa Jonker <Mischa.Jonker@synopsys.com> | 2013-06-04 09:45:48 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-06-19 10:50:23 (GMT) |
commit | 03d8e80beb7db78a13c192431205b9c83f7e0cd1 (patch) | |
tree | 5d2ddf31ec6ee0a39e6ff1d53593889e1af3aa4e /arch/metag/kernel/perf/perf_event.c | |
parent | e712209a9e0b70e78b13847738eb66fe37412515 (diff) | |
download | linux-03d8e80beb7db78a13c192431205b9c83f7e0cd1.tar.xz |
perf: Add const qualifier to perf_pmu_register's 'name' arg
This allows us to use pdev->name for registering a PMU device.
IMO the name is not supposed to be changed anyway.
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1370339148-5566-1-git-send-email-mjonker@synopsys.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/metag/kernel/perf/perf_event.c')
-rw-r--r-- | arch/metag/kernel/perf/perf_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/metag/kernel/perf/perf_event.c b/arch/metag/kernel/perf/perf_event.c index 3665694..5b18888 100644 --- a/arch/metag/kernel/perf/perf_event.c +++ b/arch/metag/kernel/perf/perf_event.c @@ -882,7 +882,7 @@ static int __init init_hw_perf_events(void) } register_cpu_notifier(&metag_pmu_notifier); - ret = perf_pmu_register(&pmu, (char *)metag_pmu->name, PERF_TYPE_RAW); + ret = perf_pmu_register(&pmu, metag_pmu->name, PERF_TYPE_RAW); out: return ret; } |