gpio-timberdale: fix a potential wrapping issue
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2012 06:56:35 +0000 (09:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2012 08:50:41 +0000 (09:50 +0100)
commit0659a3107481012c778d9e249a3561474a4b4a7d
tree7e9efc994656b076f644b14059821292f522c01f
parent0d819068496793d2f8ef48a6fcec4c7d329d8b8a
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-timberdale.c