summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvmem')
-rw-r--r--drivers/nvmem/rave-sp-eeprom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/nvmem/rave-sp-eeprom.c b/drivers/nvmem/rave-sp-eeprom.c
index ff91f39f73..6c6ed17f18 100644
--- a/drivers/nvmem/rave-sp-eeprom.c
+++ b/drivers/nvmem/rave-sp-eeprom.c
@@ -337,6 +337,11 @@ static int rave_sp_eeprom_probe(struct device_d *dev)
eeprom->header_size = RAVE_SP_EEPROM_HEADER_SMALL;
config.name = dev_name(dev);
+ /*
+ * If a name is specified via DT, override the above with it.
+ */
+ of_property_read_string(dev->device_node, "zii,eeprom-name",
+ &config.name);
config.dev = dev;
config.word_size = 1;
config.stride = 1;