aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/tps6594-pfsm.c
diff options
context:
space:
mode:
authorRuan Jinjie <ruanjinjie@huawei.com>2023-08-07 17:30:10 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-12 12:58:40 +0200
commit1314e1220d7d31aa99ed551e42d76ba7be8e5bf4 (patch)
treeeda4beb65948e8c068e5296e48c2a98aada4e8ee /drivers/misc/tps6594-pfsm.c
parentfd06978b06a2ad99cb6d048617e50869d4081420 (diff)
downloadlinux-1314e1220d7d31aa99ed551e42d76ba7be8e5bf4.tar.gz
misc: tps6594: Remove redundant dev_err_probe() for platform_get_irq_byname()
There is no need to call the dev_err_probe() function directly to print a custom message when handling an error from platform_get_irq_byname() function as it is going to display an appropriate error message in case of a failure. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20230807093010.2112302-1-ruanjinjie@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/tps6594-pfsm.c')
-rw-r--r--drivers/misc/tps6594-pfsm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/tps6594-pfsm.c b/drivers/misc/tps6594-pfsm.c
index 0e24f8daaa9af..88dcac8148922 100644
--- a/drivers/misc/tps6594-pfsm.c
+++ b/drivers/misc/tps6594-pfsm.c
@@ -266,8 +266,7 @@ static int tps6594_pfsm_probe(struct platform_device *pdev)
for (i = 0 ; i < pdev->num_resources ; i++) {
irq = platform_get_irq_byname(pdev, pdev->resource[i].name);
if (irq < 0)
- return dev_err_probe(dev, irq, "Failed to get %s irq\n",
- pdev->resource[i].name);
+ return irq;
ret = devm_request_threaded_irq(dev, irq, NULL,
tps6594_pfsm_isr, IRQF_ONESHOT,