aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-01-24 20:42:25 -0500
committerDave Airlie <airlied@redhat.com>2018-01-24 20:42:25 -0500
commit559f17bec508548850654dd04525fd69d90f6d4e (patch)
treef6d60cbcd42a481779ff1f13d831b9f105a22769 /drivers/gpu
parent22bc72c8075fa350482cdbbd66597d626aa506c8 (diff)
parent341a0ffceaa44660c43d219a3b2569ebbd7d3ad1 (diff)
Merge tag 'drm-misc-next-fixes-2018-01-18' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
Fixes for 4.16: Fixes one Kconfig issue and a enable some panels to work properly. There is also a fix of error code return in sun4i. * tag 'drm-misc-next-fixes-2018-01-18' of git://anongit.freedesktop.org/drm/drm-misc: drm: Fix PANEL_ORIENTATION_QUIRKS breaking the Kconfig DRM menuconfig drm/panel: lvds: Handle the optional regulator case properly drm/sun4i: Fix error code in sun4i_tcon_bind()
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/Kconfig8
-rw-r--r--drivers/gpu/drm/panel/panel-lvds.c11
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.c2
3 files changed, 14 insertions, 7 deletions
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 0bc374459440..deeefa7a1773 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -27,10 +27,6 @@ config DRM_MIPI_DSI
27 bool 27 bool
28 depends on DRM 28 depends on DRM
29 29
30# Separate option because drm_panel_orientation_quirks.c is shared with fbdev
31config DRM_PANEL_ORIENTATION_QUIRKS
32 tristate
33
34config DRM_DP_AUX_CHARDEV 30config DRM_DP_AUX_CHARDEV
35 bool "DRM DP AUX Interface" 31 bool "DRM DP AUX Interface"
36 depends on DRM 32 depends on DRM
@@ -372,6 +368,10 @@ config DRM_SAVAGE
372 368
373endif # DRM_LEGACY 369endif # DRM_LEGACY
374 370
371# Separate option because drm_panel_orientation_quirks.c is shared with fbdev
372config DRM_PANEL_ORIENTATION_QUIRKS
373 tristate
374
375config DRM_LIB_RANDOM 375config DRM_LIB_RANDOM
376 bool 376 bool
377 default n 377 default n
diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c
index 57e38a9e7ab4..b5e3994f0aa8 100644
--- a/drivers/gpu/drm/panel/panel-lvds.c
+++ b/drivers/gpu/drm/panel/panel-lvds.c
@@ -215,8 +215,15 @@ static int panel_lvds_probe(struct platform_device *pdev)
215 lvds->supply = devm_regulator_get_optional(lvds->dev, "power"); 215 lvds->supply = devm_regulator_get_optional(lvds->dev, "power");
216 if (IS_ERR(lvds->supply)) { 216 if (IS_ERR(lvds->supply)) {
217 ret = PTR_ERR(lvds->supply); 217 ret = PTR_ERR(lvds->supply);
218 dev_err(lvds->dev, "failed to request regulator: %d\n", ret); 218
219 return ret; 219 if (ret != -ENODEV) {
220 if (ret != -EPROBE_DEFER)
221 dev_err(lvds->dev, "failed to request regulator: %d\n",
222 ret);
223 return ret;
224 }
225
226 lvds->supply = NULL;
220 } 227 }
221 228
222 /* Get GPIOs and backlight controller. */ 229 /* Get GPIOs and backlight controller. */
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index b78fed809992..3c15cf24b503 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -902,7 +902,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
902 has_lvds_alt = false; 902 has_lvds_alt = false;
903 } else { 903 } else {
904 dev_err(dev, "Couldn't get the LVDS PLL\n"); 904 dev_err(dev, "Couldn't get the LVDS PLL\n");
905 return PTR_ERR(tcon->lvds_rst); 905 return PTR_ERR(tcon->lvds_pll);
906 } 906 }
907 } else { 907 } else {
908 has_lvds_alt = true; 908 has_lvds_alt = true;