drm/bridge/sii8620: fix resource acquisition error handling
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 13 Jul 2020 14:43:23 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Jul 2020 07:03:44 +0000 (09:03 +0200)
commita60294d2b0bc015658ce66b134cc8070fa1151b0
tree2701260f22d698aba74dcfffb023540073812079
parentd090b70ede02370014a1cf8acd211d1ed0fa9fd9
drm/bridge/sii8620: fix resource acquisition error handling

In case of error during resource acquisition driver should print error
message only in case it is not deferred probe, using dev_err_probe helper
solves the issue. Moreover it records defer probe reason for debugging.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20200713144324.23654-4-a.hajda@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/bridge/sil-sii8620.c