ARM: perf: assign pdev pointer earlier for CPU PMUs
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 7 Feb 2014 21:01:20 +0000 (21:01 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 21 Feb 2014 11:10:52 +0000 (11:10 +0000)
commit3a3967ed9135f931f3848b0c946dcf3c10ca9f9a
treeb358c1ff9179d9e2eac6bd4bd47517e05b4a510a
parentbbd64559376fa25732994c4181c8ec493fa57871
ARM: perf: assign pdev pointer earlier for CPU PMUs

We want to inspect the of_node that the pdev is pointing to in
the Krait CPU specific PMU initialization function. Assign it
earlier so that we don't crash with a NULL pointer dereference.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_cpu.c