diff options
author | Michael Büsch <mb@bu3sch.de> | 2010-09-04 18:55:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-07 13:54:34 -0400 |
commit | f4bbf922f39696ed5517ac91a823e4120cb649d0 (patch) | |
tree | fe7ed59a652f5966b51ec34c9219cc27c825c913 | |
parent | c2ba33424600e742f4d44ba2237024e6322a00fa (diff) |
p54spi: Add error message for eeprom failure
This adds an error message for the eeprom request failure
case. This way it's easier for the user to figure out
what went wrong.
Signed-off-by: Michael Büsch <mb@bu3sch.de>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/p54/p54spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index 156e57dbd2cf..18d24b7b1e34 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c | |||
@@ -202,6 +202,8 @@ static int p54spi_request_eeprom(struct ieee80211_hw *dev) | |||
202 | dev_info(&priv->spi->dev, "loading default eeprom...\n"); | 202 | dev_info(&priv->spi->dev, "loading default eeprom...\n"); |
203 | ret = p54_parse_eeprom(dev, (void *) p54spi_eeprom, | 203 | ret = p54_parse_eeprom(dev, (void *) p54spi_eeprom, |
204 | sizeof(p54spi_eeprom)); | 204 | sizeof(p54spi_eeprom)); |
205 | #else | ||
206 | dev_err(&priv->spi->dev, "Failed to request user eeprom\n"); | ||
205 | #endif /* CONFIG_P54_SPI_DEFAULT_EEPROM */ | 207 | #endif /* CONFIG_P54_SPI_DEFAULT_EEPROM */ |
206 | } else { | 208 | } else { |
207 | dev_info(&priv->spi->dev, "loading user eeprom...\n"); | 209 | dev_info(&priv->spi->dev, "loading user eeprom...\n"); |