Skip to content

Commit

Permalink
usb: usb251xb: silence EPROBE_DEFER error on boot
Browse files Browse the repository at this point in the history
Use dev_err_probe to silence EPROBE_DEFER error on boot:
[    0.757677] usb251xb 1-002c: failed to get ofdata: -517

Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Acked-by: Richard Leitner <richard.leitner@linux.dev>
Link: https://lore.kernel.org/r/20250203-defer_usb1-v2-1-eba405ebee2c@atmark-techno.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dominique Martinet authored and Greg Kroah-Hartman committed Feb 3, 2025
1 parent 9570d99 commit 42bc7fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/usb/misc/usb251xb.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,8 @@ static int usb251xb_probe(struct usb251xb *hub)

if (np && usb_data) {
err = usb251xb_get_ofdata(hub, usb_data);
if (err) {
dev_err(dev, "failed to get ofdata: %d\n", err);
return err;
}
if (err)
return dev_err_probe(dev, err, "failed to get ofdata\n");
}

/*
Expand Down

0 comments on commit 42bc7fa

Please sign in to comment.