]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:47 +0000 (11:29 +0200)
commit24cc89cb5a6b496fd7f6aab6765fb326c8ca7115
treefa7ab201d0513cf94f7f4025a063d18f66dea5e2
parent27b210c28dde64a372385b7b0608bb97873fe012
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