regulator: fixed: honour optionality of enable gpio
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 28 Sep 2016 09:24:07 +0000 (11:24 +0200)
committerTom Warren <twarren@nvidia.com>
Mon, 10 Oct 2016 17:44:37 +0000 (10:44 -0700)
commitdc06f63f2ac566746dd6aae4aeb76bed40928ed4
tree5f70510cb858aff1d44d6efcbbb445e44fc0d90f
parent28c694c86f954c563a000c279151a84b9510989c
regulator: fixed: honour optionality of enable gpio

According to the binding documentation the fixed regulator enable GPIO
is optional. However so far registration thereof failed if no enable
GPIO was specified. Fix this by making it entirely optional whether an
enable GPIO is used.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/power/regulator/fixed.c