gpio: esp32: retrieve pinmux from devicetree reference

Need to declare the device before the pointer can be obtained, and to
validate the device before trying to use it.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
1 file changed