pcie-gadget-spear: fix error return code in spear_pcie_gadget_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 31 May 2013 12:01:30 +0000 (20:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 21:23:32 +0000 (14:23 -0700)
commitc265a0d5152619bddcf1986f17995d2df6781554
treea12aedb8a70c6f45d507206f7d6fa9c7cff00cd0
parentfca597558e47f936a0e03bab15af726aa3a0fa0e
pcie-gadget-spear: fix error return code in spear_pcie_gadget_probe()

Fix to return a negative error code in the clk_get_sys() and clk_enable()
error handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/spear13xx_pcie_gadget.c