]> git.baikalelectronics.ru Git - kernel.git/commit
sh: pfc: Release spinlock in sh_pfc_gpio_request_enable() error path
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 14 Sep 2012 18:25:48 +0000 (20:25 +0200)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 18 Sep 2012 07:54:46 +0000 (16:54 +0900)
commit51914756d1c7879ac73851a9f32e5bc97d0ad653
treeb09b296f19553512c550418da3396a7003b384d5
parentbbec262f2122e900eaf7abdce775e16662c687df
sh: pfc: Release spinlock in sh_pfc_gpio_request_enable() error path

The sh_pfc_gpio_request_enable() function acquires a spinlock but fails
to release it before returning if the requested mux type is not
supported. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/pfc/pinctrl.c