]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/generic: initialize basic_mmio_gpio shadow variables properly
authorShawn Guo <shawn.guo@linaro.org>
Sat, 19 May 2012 13:34:58 +0000 (21:34 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 19 May 2012 18:17:35 +0000 (12:17 -0600)
commitfecdc631f7ccd96a9d40ce82ab89eaa9989c336c
treefc9246cd2e491e8c9b6f7cec994da2b314b7c4ca
parent82e54c18de98e1873a148d34b9f3b86e7d00edfd
gpio/generic: initialize basic_mmio_gpio shadow variables properly

It fixes the issue in gpio-generic that commit 29dbd1e (gpio/mxc: add
missing initialization of basic_mmio_gpio shadow variables) manged to
fix in gpio-mxc driver, so that other platform specific drivers do not
suffer from the same problem over and over again.

Changes since v1:
* Turn the last parameter of bgpio_init() "bool big_endian" into
  "unsigned long flags" and give those really quirky hardwares a
  chance to tell that reg_set and reg_dir are unreadable.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
[grant.likely: Fix big-endian usage to explicitly set BBGPIOF_BIG_ENDIAN]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-ep93xx.c
drivers/gpio/gpio-generic.c
drivers/gpio/gpio-mxc.c
drivers/gpio/gpio-mxs.c
drivers/gpio/gpio-sodaville.c
include/linux/basic_mmio_gpio.h