diff mbox

p54spi: Add error message for eeprom failure

Message ID 1283640938.3538.7.camel@maggie (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Michael Buesch Sept. 4, 2010, 10:55 p.m. UTC
None
diff mbox

Patch

--- wireless-testing.orig/drivers/net/wireless/p54/p54spi.c
+++ wireless-testing/drivers/net/wireless/p54/p54spi.c
@@ -202,6 +202,8 @@  static int p54spi_request_eeprom(struct
 		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");