diff mbox

[PATCH/RFC,189/390] sh: pfc: Error out on pinctrl init resolution failure.

Message ID 1364525119-31791-190-git-send-email-horms+renesas@verge.net.au (mailing list archive)
State New, archived
Headers show

Commit Message

Simon Horman March 29, 2013, 2:41 a.m. UTC
From: Paul Mundt <lethal@linux-sh.org>

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

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
(cherry picked from commit 159ac0737e66f20a913248668d67444afde53b53)

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 drivers/sh/pfc/core.c |    3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/drivers/sh/pfc/core.c b/drivers/sh/pfc/core.c
index b81d335..6816937 100644
--- a/drivers/sh/pfc/core.c
+++ b/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;
 	}
 
 	/*