linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] p54spi: Add error message for eeprom failure
@ 2010-09-04 22:55 Michael Büsch
  2010-09-04 23:37 ` Christian Lamparter
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Büsch @ 2010-09-04 22:55 UTC (permalink / raw)
  To: Christian Lamparter, John W. Linville; +Cc: linux-wireless

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>

---
 drivers/net/wireless/p54/p54spi.c |    2 ++
 1 file changed, 2 insertions(+)

--- 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");



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] p54spi: Add error message for eeprom failure
  2010-09-04 22:55 [PATCH] p54spi: Add error message for eeprom failure Michael Büsch
@ 2010-09-04 23:37 ` Christian Lamparter
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Lamparter @ 2010-09-04 23:37 UTC (permalink / raw)
  To: Michael Büsch; +Cc: John W. Linville, linux-wireless

On Sunday 05 September 2010 00:55:38 Michael Büsch wrote:
> 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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-04 23:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-04 22:55 [PATCH] p54spi: Add error message for eeprom failure Michael Büsch
2010-09-04 23:37 ` Christian Lamparter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).