Skip to content

Commit

Permalink
extcon: adc-jack: Remove dev_err() usage after platform_get_irq()
Browse files Browse the repository at this point in the history
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.

Signed-off-by: Stephen Boyd <[email protected]>
[cw00.choi: Edit patch title and description for readability]
Signed-off-by: Chanwoo Choi <[email protected]>
  • Loading branch information
bebarino authored and chanwoochoi committed Jul 31, 2019
1 parent 21be848 commit a3fc572
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/extcon/extcon-adc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,8 @@ static int adc_jack_probe(struct platform_device *pdev)
return err;

data->irq = platform_get_irq(pdev, 0);
if (data->irq < 0) {
dev_err(&pdev->dev, "platform_get_irq failed\n");
if (data->irq < 0)
return -ENODEV;
}

err = request_any_context_irq(data->irq, adc_jack_irq_thread,
pdata->irq_flags, pdata->name, data);
Expand Down

0 comments on commit a3fc572

Please sign in to comment.