pinctrl: at91: Bail out if atmel,pins property does not exist
Do not blindly assume that a device node has a atmel,pins property.
Instead, test it for being NULL before using it. This also silences
a compiler warning when the driver is compiled without OF support.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9c2b81e commit 659512c07d87bbdcd2cfa2b6f2be58febcd67841
@Sascha Hauer Sascha Hauer authored on 27 Jun 2017
Showing 1 changed file
View
drivers/pinctrl/pinctrl-at91.c