diff options
author | 2020-02-11 01:28:56 -0600 | |
---|---|---|
committer | 2020-02-14 16:20:24 +0100 | |
commit | 0e4e3fb4901d19f49e5c0a582f383b10dda8d1c5 (patch) | |
tree | e5baccd30c6151b7428c58f4ccf2bcb07013c166 /drivers/usb/cdns3/cdns3-imx.c | |
parent | drm/sun4i: dsi: Remove unused drv from driver context (diff) | |
download | wireguard-linux-0e4e3fb4901d19f49e5c0a582f383b10dda8d1c5.tar.xz wireguard-linux-0e4e3fb4901d19f49e5c0a582f383b10dda8d1c5.zip |
drm/sun4i: dsi: Use NULL to signify "no panel"
The continued use of an ERR_PTR to signify "no panel" outside of
sun6i_dsi_attach is confusing because it is a double negative. Because
the connector always reports itself as connected, there is also the
possibility of sending an ERR_PTR to drm_panel_get_modes(), which would
crash.
Solve both of these by only storing the panel pointer if it is valid.
Fixes: 133add5b5ad4 ("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200211072858.30784-2-samuel@sholland.org
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions