mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 06:30:20 -04:00
drm/sitronix/st7571-i2c: Log probe deferral cause for GPIO get failure
The driver already uses the dev_err_probe() helper (that only prints error messages for the -EPROBE_DEFER case) when fails to get any other resource. Also do the same when it fails to obtain the reset GPIO. Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com> Link: https://lore.kernel.org/r/20250715110411.448343-3-javierm@redhat.com Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
@@ -804,7 +804,9 @@ static int st7571_parse_dt(struct st7571_device *st7571)
|
||||
|
||||
st7571->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
|
||||
if (IS_ERR(st7571->reset))
|
||||
return PTR_ERR(st7571->reset);
|
||||
return dev_err_probe(dev, PTR_ERR(st7571->reset),
|
||||
"Failed to get reset gpio\n");
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user