浏览代码

MIPS: TXx9: Fix error handling / Fix for noenexisting gpio_remove.

Error was introduced by commit 0385d1f3d394c6814be0b165c153fc3fc254469a.

Signed-off-by: Ralf Roesch <ralf.roesch@rw-gmbh.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Roesch 15 年之前
父节点
当前提交
a2e62f3a85
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/mips/txx9/generic/setup.c

+ 2 - 1
arch/mips/txx9/generic/setup.c

@@ -817,7 +817,8 @@ void __init txx9_iocled_init(unsigned long baseaddr,
 out_pdev:
 	platform_device_put(pdev);
 out_gpio:
-	gpio_remove(&iocled->chip);
+	if (gpiochip_remove(&iocled->chip))
+		return;
 out_unmap:
 	iounmap(iocled->mmioaddr);
 out_free: