]> Pileus Git - ~andy/linux/commit
drivers: CCI: fix the error handle in cci_pmu_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 22 Sep 2013 05:04:23 +0000 (06:04 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 24 Sep 2013 13:03:05 +0000 (14:03 +0100)
commitfee4f2c66a3b0f0e97e16b3084e8c4151ae9196f
tree0813f6628bfa21f58428d8cd5891671636fb0644
parentb91c8f284acc2cb2aa43a1ce58322573ad983a14
drivers: CCI: fix the error handle in cci_pmu_probe()

This patch fix the error handle of function cci_pmu_probe():
- using IS_ERR() instead of NULL test for the return value of
  devm_ioremap_resource() since it nerver return NULL.
- remove kfree() for devm_kzalloc allocated memory
- remove dev_warn() since devm_ioremap_resource() has error message
  already.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/bus/arm-cci.c