提交 dfc1d9b2 编写于 作者: M Masahiro Yamada 提交者: Philipp Zabel

reset: minimize the number of headers included from <linux/reset.h>

Commit 62e24c57 ("reset: add exported __reset_control_get, return
NULL if optional") moved the dev->of_node reference to core.c, so
<linux/reset.h> does not need to know the members of struct device.
Declaring device and device_node as structure is enough.

<linux/types.h> is necessary for bool, true, and false.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 bb6c7768
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
#ifndef _LINUX_RESET_H_ #ifndef _LINUX_RESET_H_
#define _LINUX_RESET_H_ #define _LINUX_RESET_H_
#include <linux/device.h> #include <linux/types.h>
struct device;
struct device_node;
struct reset_control; struct reset_control;
#ifdef CONFIG_RESET_CONTROLLER #ifdef CONFIG_RESET_CONTROLLER
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册