Browse Source

sh: pfc: Error out on pinctrl init resolution failure.

pinctrl support is required for correct operation, failure to locate
the init routine is fatal.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 13 năm trước cách đây
mục cha
commit
159ac0737e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      drivers/sh/pfc/core.c

+ 3 - 0
drivers/sh/pfc/core.c

@@ -536,6 +536,9 @@ int register_sh_pfc(struct sh_pfc *pfc)
 
 		if (unlikely(ret != 0))
 			goto err;
+	} else {
+		pr_err("failed to initialize pinctrl bindings\n");
+		goto err;
 	}
 
 	/*