[PATCH 3/4] pinctrl: at91: Prevent NULL dereference if of_match_device returns NULL

2012-11-14 Thread Axel Lin
of_match_device() may return NULL. Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-at91.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 8490a55..32006c8 100644 ---

[PATCH 3/4] pinctrl: at91: Prevent NULL dereference if of_match_device returns NULL

2012-11-14 Thread Axel Lin
of_match_device() may return NULL. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-at91.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 8490a55..32006c8 100644