diff options
Diffstat (limited to 'drivers/pinctrl/core.h')
-rw-r--r-- | drivers/pinctrl/core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h index 232a9f6db4aa..fdd350d639f6 100644 --- a/drivers/pinctrl/core.h +++ b/drivers/pinctrl/core.h | |||
@@ -9,6 +9,7 @@ | |||
9 | * License terms: GNU General Public License (GPL) version 2 | 9 | * License terms: GNU General Public License (GPL) version 2 |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/kref.h> | ||
12 | #include <linux/mutex.h> | 13 | #include <linux/mutex.h> |
13 | #include <linux/radix-tree.h> | 14 | #include <linux/radix-tree.h> |
14 | #include <linux/pinctrl/pinconf.h> | 15 | #include <linux/pinctrl/pinconf.h> |
@@ -58,6 +59,7 @@ struct pinctrl_dev { | |||
58 | * @state: the current state | 59 | * @state: the current state |
59 | * @dt_maps: the mapping table chunks dynamically parsed from device tree for | 60 | * @dt_maps: the mapping table chunks dynamically parsed from device tree for |
60 | * this device, if any | 61 | * this device, if any |
62 | * @users: reference count | ||
61 | */ | 63 | */ |
62 | struct pinctrl { | 64 | struct pinctrl { |
63 | struct list_head node; | 65 | struct list_head node; |
@@ -65,6 +67,7 @@ struct pinctrl { | |||
65 | struct list_head states; | 67 | struct list_head states; |
66 | struct pinctrl_state *state; | 68 | struct pinctrl_state *state; |
67 | struct list_head dt_maps; | 69 | struct list_head dt_maps; |
70 | struct kref users; | ||
68 | }; | 71 | }; |
69 | 72 | ||
70 | /** | 73 | /** |