Input: rotary-encoder - defer calls gpio_to_irq()
authorDaniel Mack <zonque@gmail.com>
Wed, 1 Aug 2012 05:08:47 +0000 (22:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Aug 2012 05:29:50 +0000 (22:29 -0700)
commita78769b80d73468d53d0ad70c5a9e3fd9ff9dc54
tree1b1e90df01fecc0294c3015a2315bbcd73e2f253
parenta2f25245269d754a9fd687a15db975271a58c5e0
Input: rotary-encoder - defer calls gpio_to_irq()

Don't call gpio_to_irq() on GPIOs before gpio_request() succeeded on
them. This avoids Ooopses with incorrect DT bindings.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/rotary_encoder.c