mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
drivers/perf: hisi: Remove redundant dev_err()/dev_err_probe()
Since commit 55b48e23f5 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() and dev_err_probe() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
Acked-by: Yushan Wang <wangyushan12@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
3bee2a4d21
commit
5f254ed714
|
|
@ -604,8 +604,7 @@ static int hisi_l3c_pmu_init_ext(struct hisi_pmu *l3c_pmu, struct platform_devic
|
|||
IRQF_NOBALANCING | IRQF_NO_THREAD,
|
||||
irqname, l3c_pmu);
|
||||
if (ret < 0)
|
||||
return dev_err_probe(&pdev->dev, ret,
|
||||
"Fail to request EXT IRQ: %d.\n", irq);
|
||||
return ret;
|
||||
|
||||
hisi_l3c_pmu->ext_irq[i] = irq;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,11 +192,8 @@ int hisi_uncore_pmu_init_irq(struct hisi_pmu *hisi_pmu,
|
|||
ret = devm_request_irq(&pdev->dev, irq, hisi_uncore_pmu_isr,
|
||||
IRQF_NOBALANCING | IRQF_NO_THREAD,
|
||||
dev_name(&pdev->dev), hisi_pmu);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev,
|
||||
"Fail to request IRQ: %d ret: %d.\n", irq, ret);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
hisi_pmu->irq = irq;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user