Skip to content
Snippets Groups Projects
Commit 7d82d897 authored by Wu, Josh's avatar Wu, Josh Committed by Andreas Bießmann
Browse files

gpio: at91: add sanity check for the NULL pointer


We need check the NULL pointer as at91_pio_get_port() may return NULL.

Also print a error message when at91_pio_get_port() failed otherwise we
cannot notice the failure.

Signed-off-by: default avatarJosh Wu <josh.wu@atmel.com>
Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
parent 49527592
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment