diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-20 19:48:39 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-22 10:36:33 -0600 |
commit | 7f1961018cb494c029fcbb446e6562064735ec5e (patch) | |
tree | 10089a45751339df4ed17fd12ed1838ed60c0ca5 /board/samsung/common/misc.c | |
parent | 3a233dbfe9308943122cc2473064bb7e876577f0 (diff) | |
download | u-boot-imx-7f1961018cb494c029fcbb446e6562064735ec5e.zip u-boot-imx-7f1961018cb494c029fcbb446e6562064735ec5e.tar.gz u-boot-imx-7f1961018cb494c029fcbb446e6562064735ec5e.tar.bz2 |
dm: exynos: Make sure that GPIOs are requested
With driver model GPIOs must be requested before use. Make sure this is
done correctly.
(Note that the soft SPI part of universal is omitted, since this driver
is about to be replaced with a driver-model-aware version)
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/samsung/common/misc.c')
-rw-r--r-- | board/samsung/common/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index b935922..4538ac7 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -411,6 +411,8 @@ void check_boot_mode(void) void keys_init(void) { /* Set direction to input */ + gpio_request(KEY_VOL_UP_GPIO, "volume-up"); + gpio_request(KEY_VOL_DOWN_GPIO, "volume-down"); gpio_direction_input(KEY_VOL_UP_GPIO); gpio_direction_input(KEY_VOL_DOWN_GPIO); } |