summaryrefslogtreecommitdiffstats
path: root/include/linux/reset-controller.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-05-01 19:36:57 +0900
committerPhilipp Zabel <p.zabel@pengutronix.de>2016-05-30 09:37:47 +0200
commit8d5b5d5ce58ee1b90110f4e358eefe3c3a6b08a2 (patch)
treed91f638964d516a2a0dd7eee28e1e02f24e069b6 /include/linux/reset-controller.h
parent1a695a905c18548062509178b98bc91e67510864 (diff)
downloadtalos-op-linux-8d5b5d5ce58ee1b90110f4e358eefe3c3a6b08a2.tar.gz
talos-op-linux-8d5b5d5ce58ee1b90110f4e358eefe3c3a6b08a2.zip
reset: add devm_reset_controller_register API
Add a device managed API for reset_controller_register(). This helps in reducing code in .remove callbacks and sometimes dropping .remove callbacks entirely. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/linux/reset-controller.h')
-rw-r--r--include/linux/reset-controller.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/reset-controller.h b/include/linux/reset-controller.h
index b91ba932bbd4..db1fe6772ad5 100644
--- a/include/linux/reset-controller.h
+++ b/include/linux/reset-controller.h
@@ -53,4 +53,8 @@ struct reset_controller_dev {
int reset_controller_register(struct reset_controller_dev *rcdev);
void reset_controller_unregister(struct reset_controller_dev *rcdev);
+struct device;
+int devm_reset_controller_register(struct device *dev,
+ struct reset_controller_dev *rcdev);
+
#endif
OpenPOWER on IntegriCloud