Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux/fpc-iii.git] / drivers / clk / hisilicon / reset.h
blob81ff9e9e3678f357672ab06714509bb50b55c66e
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (c) 2015 HiSilicon Technologies Co., Ltd.
4 */
6 #ifndef __HISI_RESET_H
7 #define __HISI_RESET_H
9 struct device_node;
10 struct hisi_reset_controller;
12 #ifdef CONFIG_RESET_CONTROLLER
13 struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev);
14 void hisi_reset_exit(struct hisi_reset_controller *rstc);
15 #else
16 static inline
17 struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
19 return 0;
21 static inline void hisi_reset_exit(struct hisi_reset_controller *rstc)
23 #endif
25 #endif /* __HISI_RESET_H */