]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: gpio: Tidy up gpio_ich6_get_base() and callers
authorSimon Glass <sjg@chromium.org>
Sat, 22 Aug 2015 21:58:59 +0000 (15:58 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 26 Aug 2015 14:54:15 +0000 (07:54 -0700)
commitdf1c9eb505a194e2957356d9e0d730dbe03ed45d
tree47230478402ef9cbed69ff307c9a19e8f105dda8
parente7cc0b6f006e547e86b111187d192ea8211c7576
x86: gpio: Tidy up gpio_ich6_get_base() and callers

This function can return an error. Correct the detection of this error so
that it works even with large 32-bit addresses.

The return value is set up for returning an I/O address but the function is
also used to return a memory-mapped address. Adjust the return code to make
this work.

Also add a bit more debugging.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/gpio/intel_ich6_gpio.c