Skip to content
Snippets Groups Projects
Commit 49e2c837 authored by Federico Vaga's avatar Federico Vaga
Browse files

drv: downgrade EEPROM not found from error to warning


Even though having a working EEPROM is part of the FMC standard, it is not
strictly needed for a driver to work. Or at least, it is not needed by the FMC
framework to continue the loading process.

Hence, we forgive the lack of an EEPROM and move on. If a driver wants to read
data from the EEPROM, it will then need to fail later.

Signed-off-by: default avatarFederico Vaga <federico.vaga@cern.ch>
parent a694d3c9
Branches
Tags
No related merge requests found
Pipeline #6371 failed
......@@ -194,10 +194,9 @@ static int __fmc_slot_eeprom_add(struct fmc_slot *slot,
kfree(nvmem_parent_name);
if (IS_ERR_OR_NULL(slot->nvmem)) {
int err = PTR_ERR(slot->nvmem);
slot->nvmem = NULL;
dev_err(&slot->dev, "Can't find attached EEPROM (%d)\n", err);
return err;
dev_warn(&slot->dev, "Can't find attached EEPROM (%ld)\n",
PTR_ERR(slot->nvmem));
}
#endif
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment