]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/bridge: thc63lvd1024: Fix regulator_get_optional() misuse
authorMark Brown <broonie@kernel.org>
Fri, 8 Nov 2019 17:32:08 +0000 (17:32 +0000)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 5 Jan 2021 05:19:48 +0000 (07:19 +0200)
commita1bc5e314581f69d431e8f05677a3b79d8c7cd96
tree72aab1c3ee52b00df74e713722417b82503ba75d
parenta4767912aa63bb66a7c35ddacd1946f3691af803
drm/bridge: thc63lvd1024: Fix regulator_get_optional() misuse

The thc63lvd1024 driver requests a supply using regulator_get_optional()
but both the name of the supply and the usage pattern suggest that it is
being used for the main power for the device and is not at all optional
for the device for function, there is no handling at all for absent
supplies.  Such regulators should use the vanilla regulator_get()
interface, it will ensure that even if a supply is not described in the
system integration one will be provided in software.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/bridge/thc63lvd1024.c