video: meson: hdmi-supply regulator should be optional
authorMaxime Jourdan <mjourdan@baylibre.com>
Tue, 4 Jun 2019 20:26:19 +0000 (22:26 +0200)
committerAnatolij Gustschin <agust@denx.de>
Wed, 5 Jun 2019 08:51:46 +0000 (10:51 +0200)
commitf944b15966d410fd81f6051a836f86d5263f617e
tree5eb859c64f84e082e71d68199815713e9cb7fc66
parentffe8a92b4bd98d83a1828e19cc27e85eb1e06216
video: meson: hdmi-supply regulator should be optional

Some boards don't have such a regulator, and don't need one to enable
HDMI display. Make it optional, fixing hdmi display for those boards.

Also surround the regulator code with a config check on DM_REGULATOR.

Reported-by: Mohammad Rasim <mohammad.rasim96@gmail.com>
Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Mohammad Rasim <mohammad.rasim96@gmail.com>
drivers/video/meson/meson_dw_hdmi.c