gpio: zynq: Fix problem with unbalanced pm_runtime_enable
authorMichal Simek <michal.simek@xilinx.com>
Thu, 25 Jun 2015 08:29:19 +0000 (10:29 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2015 11:00:43 +0000 (13:00 +0200)
commit6b956af0807a88c79d53e0cb2a3170a2b03e3230
tree5c1d636263b749141a6f14d4c4cc59dabf8e04a5
parent977bd8a94c40851a843e9186b9eb823bdfa5ace2
gpio: zynq: Fix problem with unbalanced pm_runtime_enable

Add missing pm_runtime_disabled to remove().

Error log:
root@zynqmp:~# modprobe gpio_zynq
root@zynqmp:~# lsmod
    Not tainted
gpio_zynq 7086 0 - Live 0xffffffbffc00a000
root@zynqmp:~# rmmod gpio_zynq
root@zynqmp:~# lsmod
    Not tainted
root@zynqmp:~# modprobe gpio_zynq
[  246.924438] zynq-gpio ff0a0000.gpio: Unbalanced pm_runtime_enable!
root@zynqmp:~# rmmod gpio_zynq
root@zynqmp:~# lsmod
    Not tainted

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-zynq.c