diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2014-05-07 16:50:45 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2014-05-27 00:10:45 +0200 |
commit | 7d82d897722f57389ebe15924f47fab452cc3a19 (patch) | |
tree | 73206e6aa46e6e1d32ecb51f050a3507505ca555 /drivers/mmc | |
parent | 495275925192edb0c5bd6cb1e3b6f85162ffd06b (diff) | |
download | u-boot-imx-7d82d897722f57389ebe15924f47fab452cc3a19.zip u-boot-imx-7d82d897722f57389ebe15924f47fab452cc3a19.tar.gz u-boot-imx-7d82d897722f57389ebe15924f47fab452cc3a19.tar.bz2 |
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>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions