gpio-timberdale: fix a potential wrapping issue
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2012 06:56:35 +0000 (09:56 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:46:52 +0000 (16:46 +0000)
commit5a7b9047f5512e10e6ef89cd36e5b572bf13f60e
tree9844f78a7eeacb9e720b6aff75d15af6b60474df
parentbdf24c170f3ac62c564392ca60a682baa0e7ef58
gpio-timberdale: fix a potential wrapping issue

commit d79550a7bc35c16476ebdc27c78378d8093390ec upstream.

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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpio/gpio-timberdale.c