summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-ds1672.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-11-09 17:34:09 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-11-19 12:50:12 +0100
commit1bfc485b73579bff5326ac481fd9be7e24a5d5d1 (patch)
tree33230dec2dfa16ee83a368376fe44e219d25c6b6 /drivers/rtc/rtc-ds1672.c
parentfdcfd854333be5b30377dc5daa9cd0fa1643a979 (diff)
rtc: shrink devm_rtc_allocate_device()
We don't need to use devres_alloc() & devres_add() manually if all we want to manage is a single pointer. We can shrink the code by using devm_add_action_or_reset() instead. The number of allocations stays the same. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20201109163409.24301-9-brgl@bgdev.pl
Diffstat (limited to 'drivers/rtc/rtc-ds1672.c')
0 files changed, 0 insertions, 0 deletions