]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b179af14fdbb62f977a2cfc9785fe8bb686b1d5
tree87a4598843b0d9adbdd84b65d3ac8d0c99718c2b
parent8e809ec6aa3116fe96dc5ab24606a6514886f644
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