commit | 383543a5a63536450dc46e19be404248b4aaed44 | [log] [tgz] |
---|---|---|
author | Wu, Josh <Josh.wu@atmel.com> | Wed May 07 16:50:45 2014 +0800 |
committer | Andreas Bießmann <andreas.devel@googlemail.com> | Tue May 27 00:10:45 2014 +0200 |
tree | 73206e6aa46e6e1d32ecb51f050a3507505ca555 | |
parent | 7cbe18d1f754cd135d1f6e17a2eaf44e2aeb035c [diff] |
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: Josh Wu <josh.wu@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>