Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'regmap-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap

Pull regmap updates from Mark Brown:
"Only two changes for this release, one fix for error handling with
runtime PM and a change from Greg removing error handling from debugfs
API calls now that they implement user visible error reporting"

* tag 'regmap-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
regmap-irq: Correct error paths in regmap_irq_thread for pm_runtime
regmap: no need to check return value of debugfs_create functions

+1 -18
-12
drivers/base/regmap/regmap-debugfs.c
··· 588 588 } 589 589 590 590 map->debugfs = debugfs_create_dir(name, regmap_debugfs_root); 591 - if (!map->debugfs) { 592 - dev_warn(map->dev, 593 - "Failed to create %s debugfs directory\n", name); 594 - 595 - kfree(map->debugfs_name); 596 - map->debugfs_name = NULL; 597 - return; 598 - } 599 591 600 592 debugfs_create_file("name", 0400, map->debugfs, 601 593 map, &regmap_name_fops); ··· 664 672 struct regmap_debugfs_node *node, *tmp; 665 673 666 674 regmap_debugfs_root = debugfs_create_dir("regmap", NULL); 667 - if (!regmap_debugfs_root) { 668 - pr_warn("regmap: Failed to create debugfs root\n"); 669 - return; 670 - } 671 675 672 676 mutex_lock(&regmap_debugfs_early_lock); 673 677 list_for_each_entry_safe(node, tmp, &regmap_debugfs_early_list, link) {
+1 -6
drivers/base/regmap/regmap-irq.c
··· 370 370 if (ret < 0) { 371 371 dev_err(map->dev, "IRQ thread failed to resume: %d\n", 372 372 ret); 373 - pm_runtime_put(map->dev); 374 373 goto exit; 375 374 } 376 375 } ··· 424 425 dev_err(map->dev, 425 426 "Failed to read IRQ status %d\n", 426 427 ret); 427 - if (chip->runtime_pm) 428 - pm_runtime_put(map->dev); 429 428 goto exit; 430 429 } 431 430 } ··· 475 478 dev_err(map->dev, 476 479 "Failed to read IRQ status: %d\n", 477 480 ret); 478 - if (chip->runtime_pm) 479 - pm_runtime_put(map->dev); 480 481 goto exit; 481 482 } 482 483 } ··· 508 513 } 509 514 } 510 515 516 + exit: 511 517 if (chip->runtime_pm) 512 518 pm_runtime_put(map->dev); 513 519 514 - exit: 515 520 if (chip->handle_post_irq) 516 521 chip->handle_post_irq(chip->irq_drv_data); 517 522