Skip to content

Commit b2a427e

Browse files
committed
Merge remote-tracking branch 'regmap/for-next' into sound/upstream-20250708
2 parents 456f387 + 5c3a02b commit b2a427e

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

drivers/base/regmap/regmap-debugfs.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,6 @@ static ssize_t regmap_cache_only_write_file(struct file *file,
470470
if (err)
471471
return count;
472472

473-
err = debugfs_file_get(file->f_path.dentry);
474-
if (err)
475-
return err;
476-
477473
map->lock(map->lock_arg);
478474

479475
if (new_val && !map->cache_only) {
@@ -486,7 +482,6 @@ static ssize_t regmap_cache_only_write_file(struct file *file,
486482
map->cache_only = new_val;
487483

488484
map->unlock(map->lock_arg);
489-
debugfs_file_put(file->f_path.dentry);
490485

491486
if (require_sync) {
492487
err = regcache_sync(map);
@@ -517,10 +512,6 @@ static ssize_t regmap_cache_bypass_write_file(struct file *file,
517512
if (err)
518513
return count;
519514

520-
err = debugfs_file_get(file->f_path.dentry);
521-
if (err)
522-
return err;
523-
524515
map->lock(map->lock_arg);
525516

526517
if (new_val && !map->cache_bypass) {
@@ -532,7 +523,6 @@ static ssize_t regmap_cache_bypass_write_file(struct file *file,
532523
map->cache_bypass = new_val;
533524

534525
map->unlock(map->lock_arg);
535-
debugfs_file_put(file->f_path.dentry);
536526

537527
return count;
538528
}

drivers/base/regmap/regmap-kunit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static void stride(struct kunit *test)
736736
}
737737
}
738738

739-
static struct regmap_range_cfg test_range = {
739+
static const struct regmap_range_cfg test_range = {
740740
.selector_reg = 1,
741741
.selector_mask = 0xff,
742742

drivers/base/regmap/regmap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,8 @@ struct regmap *__regmap_init(struct device *dev,
11731173
err_map:
11741174
kfree(map);
11751175
err:
1176+
if (bus && bus->free_on_exit)
1177+
kfree(bus);
11761178
return ERR_PTR(ret);
11771179
}
11781180
EXPORT_SYMBOL_GPL(__regmap_init);

0 commit comments

Comments
 (0)