]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/perf: arm_pmu: fold init into alloc
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:46 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commit70cd908a18f618577c449ad47988f4d442c9bc84
treeb20d7d05a2ede75ad879c2d00ec76e62e7e6cc12
parent083c52144a19c69b7956aa53c913ba621f7c5ae2
drivers/perf: arm_pmu: fold init into alloc

Given we always want to initialise common fields on an allocated PMU,
this patch folds this common initialisation into armpmu_alloc(). This
will make it simpler to reuse this code for an ACPI-specific probe path.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c