summaryrefslogtreecommitdiff
path: root/drivers/bus/arm-cci.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2016-02-26 19:13:37 +0300
committerWill Deacon <will.deacon@arm.com>2016-03-01 02:23:17 +0300
commit6ec3070298ab8ea56aa694c6160c51d47a8d0830 (patch)
tree65993bd819e9af232bbe5b4e16fbfa4b279ea000 /drivers/bus/arm-cci.c
parentceb495124417a8aada7c6ee917dff8f1328e8480 (diff)
downloadlinux-6ec3070298ab8ea56aa694c6160c51d47a8d0830.tar.xz
arm-cci: don't return value from void function
pmu_write_register has a void return type, so remove the useless return statement. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/bus/arm-cci.c')
-rw-r--r--drivers/bus/arm-cci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c
index d951371a74d4..afe64ab2c06b 100644
--- a/drivers/bus/arm-cci.c
+++ b/drivers/bus/arm-cci.c
@@ -758,8 +758,8 @@ static u32 pmu_read_register(struct cci_pmu *cci_pmu, int idx, unsigned int offs
static void pmu_write_register(struct cci_pmu *cci_pmu, u32 value,
int idx, unsigned int offset)
{
- return writel_relaxed(value, cci_pmu->base +
- CCI_PMU_CNTR_BASE(cci_pmu->model, idx) + offset);
+ writel_relaxed(value, cci_pmu->base +
+ CCI_PMU_CNTR_BASE(cci_pmu->model, idx) + offset);
}
static void pmu_disable_counter(struct cci_pmu *cci_pmu, int idx)