Skip to content

Commit

Permalink
serial: sh-sci: Switch to use dev_err_probe_ptr()
Browse files Browse the repository at this point in the history
Instead of
	return ERR_PTR(dev_err_probe(...));
call
	return dev_err_probe_ptr(...);

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
andy-shev authored and intel-lab-lkp committed Feb 14, 2022
1 parent 4cee326 commit 810910d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/tty/serial/sh-sci.c
Expand Up @@ -3202,8 +3202,7 @@ static struct plat_sci_port *sci_parse_dt(struct platform_device *pdev,

rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL);
if (IS_ERR(rstc))
return ERR_PTR(dev_err_probe(&pdev->dev, PTR_ERR(rstc),
"failed to get reset ctrl\n"));
return dev_err_probe_ptr(&pdev->dev, PTR_ERR(rstc), "failed to get reset ctrl\n");

ret = reset_control_deassert(rstc);
if (ret) {
Expand Down

0 comments on commit 810910d

Please sign in to comment.