arm-cci: simplify sysfs attr handling
authorMark Rutland <mark.rutland@arm.com>
Tue, 23 Feb 2016 10:49:43 +0000 (10:49 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 29 Feb 2016 23:23:16 +0000 (23:23 +0000)
commit5e442eba342e567e2b3f1a39a24f81559f8370f7
tree87a4598843b0d9adbdd84b65d3ac8d0c99718c2b
parentda4e4f18afe0f3729d68f3785c5802f786d36e34
arm-cci: simplify sysfs attr handling

There's no need to dynamically initialise attribute pointers when we can
get the compiler to do it for us. We also don't need a dev_ext_attribute
for the cpumask, as the drvdata for a PMU device is a pointer to struct
pmu.

Cc: Punit Agrawal <punit.agrawal@arm.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/bus/arm-cci.c