Merge tag 'xfs-6.2-merge-8' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-block.git] / drivers / clk / hisilicon / reset.h
CommitLineData
1ccea77e 1/* SPDX-License-Identifier: GPL-2.0-or-later */
25824d52
JX
2/*
3 * Copyright (c) 2015 HiSilicon Technologies Co., Ltd.
25824d52
JX
4 */
5
6#ifndef __HISI_RESET_H
7#define __HISI_RESET_H
8
9struct device_node;
10struct hisi_reset_controller;
11
12#ifdef CONFIG_RESET_CONTROLLER
97b7129c 13struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev);
25824d52
JX
14void hisi_reset_exit(struct hisi_reset_controller *rstc);
15#else
97b7129c
JX
16static inline
17struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
25824d52
JX
18{
19 return 0;
20}
21static inline void hisi_reset_exit(struct hisi_reset_controller *rstc)
22{}
23#endif
24
25#endif /* __HISI_RESET_H */