summaryrefslogtreecommitdiff
path: root/drivers/bus/fsl-mc/fsl-mc-allocator.c
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2018-03-15 12:05:33 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-23 15:52:48 +0100
commit1e8ac83b6caf9567a8d68b3e650b7a093fd47e4b (patch)
tree26abc9da5ace7ccb1dcdf64a14299aadf539ade7 /drivers/bus/fsl-mc/fsl-mc-allocator.c
parent5b04cedeca188874d3267bc210ec10c337635ddd (diff)
downloadlwn-1e8ac83b6caf9567a8d68b3e650b7a093fd47e4b.tar.gz
lwn-1e8ac83b6caf9567a8d68b3e650b7a093fd47e4b.zip
bus: fsl-mc: add fsl_mc_allocator cleanup function
The userspace support for fsl-mc requires a fsl_mc_allocator cleanup function. Add the needed function. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/bus/fsl-mc/fsl-mc-allocator.c')
-rw-r--r--drivers/bus/fsl-mc/fsl-mc-allocator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/bus/fsl-mc/fsl-mc-allocator.c b/drivers/bus/fsl-mc/fsl-mc-allocator.c
index 452c5d7a12e9..fb1442b08962 100644
--- a/drivers/bus/fsl-mc/fsl-mc-allocator.c
+++ b/drivers/bus/fsl-mc/fsl-mc-allocator.c
@@ -646,3 +646,8 @@ int __init fsl_mc_allocator_driver_init(void)
{
return fsl_mc_driver_register(&fsl_mc_allocator_driver);
}
+
+void fsl_mc_allocator_driver_exit(void)
+{
+ fsl_mc_driver_unregister(&fsl_mc_allocator_driver);
+}