projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a8b55e
)
drivers/perf: arm_dsu_pmu: Avoid duplicate printouts
author
Tang Bin
<tangbin@cmss.chinamobile.com>
Thu, 2 Apr 2020 11:59:40 +0000
(19:59 +0800)
committer
Will Deacon
<will@kernel.org>
Thu, 30 Apr 2020 20:48:10 +0000
(21:48 +0100)
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>
drivers/perf/arm_dsu_pmu.c
patch
|
blob
|
history
diff --git
a/drivers/perf/arm_dsu_pmu.c
b/drivers/perf/arm_dsu_pmu.c
index 70968c8c09d7f83a6cf8162c44f04d5bbf5dc528..518d0603e24f35652b601b98680f0ac5d2440be1 100644
(file)
--- 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));