x86 platform drivers: fix gpio leak
authorLibo Chen <clbchenlibo.chen@huawei.com>
Tue, 9 Jul 2013 12:34:28 +0000 (20:34 +0800)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 10 Jul 2013 19:42:51 +0000 (15:42 -0400)
commitfef8ce166b2d5cdba8bbf85fa48c4cb8d75ffec4
tree50eb445157b91520524ad9f7ef9c6b890c185332
parent283672e425b24fe4046535973460e8732f4bd485
x86 platform drivers: fix gpio leak

when request_irq fails, we should release gpiochip

v2:
  fix warning: ignoring return value of 'gpiochip_remove

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/intel_pmic_gpio.c