We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf7e4d commit 6188f23Copy full SHA for 6188f23
drivers/nvmem/core.c
@@ -367,11 +367,6 @@ static const struct attribute_group *nvmem_dev_groups[] = {
367
NULL,
368
};
369
370
-static const struct attribute_group *nvmem_cells_groups[] = {
371
- &nvmem_cells_group,
372
- NULL,
373
-};
374
-
375
static struct bin_attribute bin_attr_nvmem_eeprom_compat = {
376
.attr = {
377
.name = "eeprom",
@@ -478,7 +473,7 @@ static int nvmem_populate_sysfs_cells(struct nvmem_device *nvmem)
478
473
479
474
nvmem_cells_group.bin_attrs = cells_attrs;
480
475
481
- ret = device_add_groups(&nvmem->dev, nvmem_cells_groups);
476
+ ret = device_add_group(&nvmem->dev, &nvmem_cells_group);
482
477
if (ret)
483
goto unlock_mutex;
484
0 commit comments