summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/core.h
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2019-10-21 10:47:37 +0100
committerLee Jones <lee.jones@linaro.org>2019-11-11 08:45:03 +0000
commit5a47c0fbd276b7f57bd38f153e8b15784b2f6f22 (patch)
tree6485e4ea7ddf873e52bdad6150ceb7a639e6e12d /include/linux/mfd/core.h
parent504c3fad8c38d5ff5a16b76c815f51c1aa375586 (diff)
downloadlinux-5a47c0fbd276b7f57bd38f153e8b15784b2f6f22.tar.bz2
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.h2
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);