pinctrl: at91-pio4: convert to dev_read_prop
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 5 Jan 2021 08:51:53 +0000 (10:51 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 22 Jan 2021 13:09:59 +0000 (15:09 +0200)
commit864a4144ba30f405b8a8e136cffb8b3ef424058d
treeb3bda2c11901b98cea318e53ba67df5f02893208
parent63c27c3e66697db779ae4cd931f8ccfd84838ae5
pinctrl: at91-pio4: convert to dev_read_prop

Use dev_read_prop instead of using the fdt_read_property which
reads from the GD struct's fdt.
This way the node is accessed via the device config instead of the
global struct, which makes code more portable and GD independent.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
drivers/pinctrl/pinctrl-at91-pio4.c