mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 05:56:46 +07:00
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>
This commit is contained in:
parent
c2ba334246
commit
f4bbf922f3
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user