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)
commit0bbbb00bda57e6f091275b0103445596322b9277
tree107e230ea37ad78648709c02e2c4af71bc801368
parentbb43d40d7c830da5f623e3938fef908b003b7523
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: 29e57fab97fc ("drm: sun4i: Add RGB output")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_tcon.c