gpio: intel-mid: fix the incorrect return of idle callback
authorxinhui.pan <xinhuiX.pan@intel.com>
Fri, 31 Jan 2014 21:08:01 +0000 (13:08 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 5 Feb 2014 09:37:06 +0000 (10:37 +0100)
commit84a34575fe7c87278e4e00f016aa5b624dcb9171
tree9c988d1e2cafdb659b19fdd422881d008ab78bf3
parentcffcc92e966911e3ea9320fac943f545a353f2e0
gpio: intel-mid: fix the incorrect return of idle callback

intel_gpio_runtime_idle should return correct error code if it do fail.
make it more correct even though -EBUSY is the most possible return value.

Signed-off-by: bo.he <bo.he@intel.com>
Signed-off-by: xinhui.pan <xinhuiX.pan@intel.com>
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-intel-mid.c