]> git.baikalelectronics.ru Git - kernel.git/commitdiff
p54spi: Add error message for eeprom failure
authorMichael Büsch <mb@bu3sch.de>
Sat, 4 Sep 2010 22:55:38 +0000 (00:55 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Sep 2010 17:54:34 +0000 (13:54 -0400)
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>
drivers/net/wireless/p54/p54spi.c

index 156e57dbd2cfa858df969ab3e98c8476f173ee89..18d24b7b1e3475c7f42c70204fa6d45105e07b81 100644 (file)
@@ -202,6 +202,8 @@ static int p54spi_request_eeprom(struct ieee80211_hw *dev)
                dev_info(&priv->spi->dev, "loading default eeprom...\n");
                ret = p54_parse_eeprom(dev, (void *) p54spi_eeprom,
                                       sizeof(p54spi_eeprom));
+#else
+               dev_err(&priv->spi->dev, "Failed to request user eeprom\n");
 #endif /* CONFIG_P54_SPI_DEFAULT_EEPROM */
        } else {
                dev_info(&priv->spi->dev, "loading user eeprom...\n");