Boris Brezillon 5fa8e4a221 drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL
Right now, the DRM panel logic returns NULL when a panel pointing to
the passed OF node is not present in the list of registered panels.

Most drivers interpret this NULL value as -EPROBE_DEFER, but we are
about to modify the semantic of of_drm_find_panel() and let the
framework return -ENODEV when the device node we're pointing to has
a status property that is not equal to "okay" or "ok".

Let's first patch the of_drm_find_panel() implementation to return
ERR_PTR(-EPROBE_DEFER) instead of NULL and patch all callers to replace
the '!panel' check by an 'IS_ERR(panel)' one.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180509130042.9435-2-boris.brezillon@bootlin.com
2018-07-10 17:59:05 +02:00
..
2018-05-18 21:56:21 +02:00
2018-05-22 10:45:43 +10:00
2018-05-18 21:59:51 +02:00
2015-08-13 13:47:45 +02:00
2017-04-05 18:11:47 +02:00
2017-04-05 18:11:47 +02:00
2018-05-17 17:44:48 +02:00
2013-10-31 09:55:45 +01:00
2016-07-04 11:34:31 +02:00
2018-05-04 11:37:03 +02:00
2015-01-27 10:14:40 +01:00
2014-04-04 09:12:51 +02:00
2018-01-18 09:32:15 +10:00
2017-12-13 14:36:37 +01:00
2017-08-17 17:57:14 +02:00
2017-09-26 11:08:17 +02:00
2018-05-18 22:00:41 +02:00
2017-04-05 18:11:48 +02:00