diff options
author | Lee Jones <lee.jones@linaro.org> | 2019-10-21 10:47:37 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-11-11 08:45:03 +0000 |
commit | 5a47c0fbd276b7f57bd38f153e8b15784b2f6f22 (patch) | |
tree | 6485e4ea7ddf873e52bdad6150ceb7a639e6e12d /include/linux/mfd/core.h | |
parent | x86: olpc-xo1-sci: Remove invocation of MFD's .enable()/.disable() call-backs (diff) | |
download | wireguard-linux-5a47c0fbd276b7f57bd38f153e8b15784b2f6f22.tar.xz wireguard-linux-5a47c0fbd276b7f57bd38f153e8b15784b2f6f22.zip |
mfd: mfd-core: Remove usage counting for .{en,dis}able() call-backs
The MFD implementation for reference counting was complex and unnecessary.
There was only one bona fide user which has now been converted to handle
the process in a different way. Any future resource protection, shared
enablement functions should be handed by the parent device, rather than
through the MFD subsystem API.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/mfd/core.h')
-rw-r--r-- | include/linux/mfd/core.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h index 63ac3cc86608..d01d1299e49d 100644 --- a/include/linux/mfd/core.h +++ b/include/linux/mfd/core.h @@ -59,8 +59,6 @@ struct mfd_cell { const char *name; int id; - /* refcounting for multiple drivers to use a single cell */ - atomic_t *usage_count; int (*enable)(struct platform_device *dev); int (*disable)(struct platform_device *dev); |