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 8adb4e6 commit 6e80096Copy full SHA for 6e80096
drivers/regulator/core.c
@@ -5724,15 +5724,11 @@ regulator_register(struct device *dev,
5724
mutex_lock(®ulator_list_mutex);
5725
regulator_ena_gpio_free(rdev);
5726
mutex_unlock(®ulator_list_mutex);
5727
- put_device(&rdev->dev);
5728
- rdev = NULL;
5729
clean:
5730
if (dangling_of_gpiod)
5731
gpiod_put(config->ena_gpiod);
5732
- if (rdev && rdev->dev.of_node)
5733
- of_node_put(rdev->dev.of_node);
5734
- kfree(rdev);
5735
kfree(config);
+ put_device(&rdev->dev);
5736
rinse:
5737
if (dangling_cfg_gpiod)
5738
gpiod_put(cfg->ena_gpiod);
0 commit comments