]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: defer only if we didn't find our panel
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 4 May 2016 15:38:32 +0000 (17:38 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 30 May 2016 06:28:33 +0000 (08:28 +0200)
commit9f64f2b88215352acd24c869d77e3aae514eac64
tree107e230ea37ad78648709c02e2c4af71bc801368
parent52f08765d6b9c1255f2e7e258071d320a555245f
drm/sun4i: defer only if we didn't find our panel

Our code currently defers our probe on any error, even if we were not
expecting to have one at all.

Make sure we return -EPROBE_DEFER only when we were supposed to have a
panel, but it's not probed yet.

Also fix a typo while we're at it.

Fixes: f7a92ed0a805 ("drm: sun4i: Add RGB output")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_tcon.c