video: arm: rpi: Bail out early if querying video information fails
authorFabian Vogt <fvogt@suse.com>
Thu, 11 Jul 2019 14:56:24 +0000 (16:56 +0200)
committerAnatolij Gustschin <agust@denx.de>
Mon, 29 Jul 2019 08:14:04 +0000 (10:14 +0200)
commit970baf16d1322d3930a57fc78ddfb15d594d690c
tree52e322c86dc0a395ef5168a3a9ba33487fe2906c
parent60a62acfb07afb0815f28abe6f49a9b906a7c3f4
video: arm: rpi: Bail out early if querying video information fails

When probing we query for the width and hight of the display. If the
firmware does not report any connected display the system will crash.
See https://github.com/raspberrypi/firmware/issues/1157 for details.

Signed-off-by: Fabian Vogt <fvogt@suse.com>
[mb: update commit message]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
drivers/video/bcm2835.c