projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0273831
)
drm/bridge: analogix-anx78xx: silence -EPROBE_DEFER warnings
author
Brian Masney
<masneyb@onstation.org>
Thu, 15 Aug 2019 00:48:46 +0000
(20:48 -0400)
committer
Andrzej Hajda
<a.hajda@samsung.com>
Mon, 16 Sep 2019 09:16:56 +0000
(11:16 +0200)
Silence two warning messages that occur due to -EPROBE_DEFER errors to
help cleanup the system boot log.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20190815004854.19860-4-masneyb@onstation.org
drivers/gpu/drm/bridge/analogix-anx78xx.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/analogix-anx78xx.c
b/drivers/gpu/drm/bridge/analogix-anx78xx.c
index 898204b67d218607542a825c706fd0c479aa97c6..5efadb82bdc44f540280e63838f36ea8bc59183a 100644
(file)
--- a/
drivers/gpu/drm/bridge/analogix-anx78xx.c
+++ b/
drivers/gpu/drm/bridge/analogix-anx78xx.c
@@
-716,7
+716,9
@@
static int anx78xx_init_pdata(struct anx78xx *anx78xx)
/* 1.0V digital core power regulator */
pdata->dvdd10 = devm_regulator_get(dev, "dvdd10");
if (IS_ERR(pdata->dvdd10)) {
- DRM_ERROR("DVDD10 regulator not found\n");
+ if (PTR_ERR(pdata->dvdd10) != -EPROBE_DEFER)
+ DRM_ERROR("DVDD10 regulator not found\n");
+
return PTR_ERR(pdata->dvdd10);
}
@@
-1334,7
+1336,9
@@
static int anx78xx_i2c_probe(struct i2c_client *client,
err = anx78xx_init_pdata(anx78xx);
if (err) {
- DRM_ERROR("Failed to initialize pdata: %d\n", err);
+ if (err != -EPROBE_DEFER)
+ DRM_ERROR("Failed to initialize pdata: %d\n", err);
+
return err;
}