Skip to content

Commit 09dd7b9

Browse files
pelwellgregkh
authored andcommitted
nvmem: rmem: Use NVMEM_DEVID_AUTO
It is reasonable to declare multiple nvmem blocks. Unless a unique 'id' is passed in for each block there may be name clashes. Avoid this by using the magic token NVMEM_DEVID_AUTO. Fixes: 5a3fa75 ("nvmem: Add driver to expose reserved memory as nvmem") Signed-off-by: Phil Elwell <phil@raspberrypi.com> Signed-off-by: Ivan T. Ivanov <iivanov@suse.de> Reviewed-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Message-ID: <20230611140330.154222-6-srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7dae593 commit 09dd7b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/nvmem/rmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static int rmem_probe(struct platform_device *pdev)
7171
config.dev = dev;
7272
config.priv = priv;
7373
config.name = "rmem";
74+
config.id = NVMEM_DEVID_AUTO;
7475
config.size = mem->size;
7576
config.reg_read = rmem_read;
7677

0 commit comments

Comments
 (0)