diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-04-02 13:59:40 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-04-30 22:48:10 +0200 |
commit | 5810f00ade49f4710a9e834db5a3ad786a76e880 (patch) | |
tree | e4a8f7e72009bae69578e60355dc10e0db83395b /drivers/perf | |
parent | Linux 5.7-rc3 (diff) | |
download | linux-5810f00ade49f4710a9e834db5a3ad786a76e880.tar.xz linux-5810f00ade49f4710a9e834db5a3ad786a76e880.zip |
drivers/perf: arm_dsu_pmu: Avoid duplicate printouts
platform_get_irq() already screams on failure, so the redundant call to
dev_err() can be removed.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200402115940.4928-1-tangbin@cmss.chinamobile.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf')
-rw-r--r-- | drivers/perf/arm_dsu_pmu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c index 70968c8c09d7..518d0603e24f 100644 --- a/drivers/perf/arm_dsu_pmu.c +++ b/drivers/perf/arm_dsu_pmu.c @@ -690,10 +690,8 @@ static int dsu_pmu_device_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_warn(&pdev->dev, "Failed to find IRQ\n"); + if (irq < 0) return -EINVAL; - } name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s_%d", PMUNAME, atomic_inc_return(&pmu_idx)); |