summaryrefslogtreecommitdiffstats
path: root/drivers/xen/tmem.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2018-01-22 10:25:17 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2018-01-22 15:14:49 +0100
commit9f4ebf670d0ac92545548a6a8c74c3a980d52cfb (patch)
tree231c0a0c7f244f1a2aad4e08783a2b26099e12bc /drivers/xen/tmem.c
parentc4c7c72e5c7aa56e6e8527aea3a79e6242282d8c (diff)
downloadblackbird-obmc-linux-9f4ebf670d0ac92545548a6a8c74c3a980d52cfb.tar.gz
blackbird-obmc-linux-9f4ebf670d0ac92545548a6a8c74c3a980d52cfb.zip
drm/sun4i: backend: Allow a NULL plane pointer to retrieve the format
The function converting the DRM format to its equivalent in the backend registers was assuming that we were having a plane. However, we might want to use that function when setting up a plane using the frontend, in which case we will not have a plane associated to the backend's layer. Yet, we still need to setup the format to the one output by the frontend. Test for NULL plane pointers before referencing them, so that we can work around it. Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Link: https://patchwork.freedesktop.org/patch/msgid/bfbe4c2e8525a7542526b648d59a8f3546e905f1.1516613040.git-series.maxime.ripard@free-electrons.com
Diffstat (limited to 'drivers/xen/tmem.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud