gpio-timberdale: fix a potential wrapping issue
commitd79550a7bc35c16476ebdc27c78378d8093390ec
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2012 06:56:35 +0000 (11 09:56 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 18:50:03 +0000 (15 20:50 +0200)
treeaadfd22e7968442d04fa651eab2c64d37b4c9d87
parentddffeb8c4d0331609ef2581d84de4d763607bd37
gpio-timberdale: fix a potential wrapping issue

->last_ier is an unsigned long but the high bits can't be used int the
original code because the shift wraps.

Cc: stable@kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-timberdale.c