This driver is using devm_regulator_register() so it is not necessary to save *rdev for clean up. Actually the pmic->rdev[id] is not used now.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -553,7 +553,6 @@ struct palmas_pmic { · 552 unmodified lines | ||
| 553 | 553 | struct palmas *palmas; |
| 554 | 554 | struct device *dev; |
| 555 | 555 | struct regulator_desc desc[PALMAS_NUM_REGS]; |
| 556 | − struct regulator_dev *rdev[PALMAS_NUM_REGS]; | |
| 557 | 556 | struct mutex mutex; |
| 558 | 557 | |
| 559 | 558 | int smps123; |