bcma: return error in bcma_sprom_get() when fallback fails
authorArend van Spriel <arend@broadcom.com>
Tue, 6 Mar 2012 14:50:47 +0000 (15:50 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Mar 2012 20:16:18 +0000 (15:16 -0500)
commit4ac887cfdad909f16ee1886fe4fa19b452fc7fd3
treec1097f92d77ca108ff5a3e6cec0800287fefc80b
parent5c17ddc4a047c59638c7eb8537aa887a1ddb9b0b
bcma: return error in bcma_sprom_get() when fallback fails

When not SPROM is available a fallback mechanism is used. However,
when that fails the code currently continues. This patch assures
that the bcma_sprom_get() function aborts when that happens.

Cc: Rafal Milecki <zajec5@gmail.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/sprom.c