Skip to content

Commit 4e302c3

Browse files
diego-santacruzbrgl
authored andcommitted
misc: eeprom: at24: fix NVMEM name with custom AT24 device name
When the "label" property is set on the AT24 EEPROM the NVMEM devid is set to NVMEM_DEVID_NONE, but it is not effective since there is a leftover line setting it back to NVMEM_DEVID_AUTO a few lines after. Fixes: 61f764c ("eeprom: at24: Support custom device names for AT24 EEPROMs") Signed-off-by: Diego Santa Cruz <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 3650b22 commit 4e302c3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/misc/eeprom/at24.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,6 @@ static int at24_probe(struct i2c_client *client)
736736

737737
nvmem_config.type = NVMEM_TYPE_EEPROM;
738738
nvmem_config.dev = dev;
739-
nvmem_config.id = NVMEM_DEVID_AUTO;
740739
nvmem_config.read_only = !writable;
741740
nvmem_config.root_only = !(flags & AT24_FLAG_IRUGO);
742741
nvmem_config.owner = THIS_MODULE;

0 commit comments

Comments
 (0)