Skip to content

Commit

Permalink
bus: fsl-mc: add fsl_mc_allocator cleanup function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ioana Ciornei authored and Greg Kroah-Hartman committed Mar 23, 2018
1 parent 5b04ced commit 1e8ac83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/bus/fsl-mc/fsl-mc-allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 2 additions & 0 deletions drivers/bus/fsl-mc/fsl-mc-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ void dprc_driver_exit(void);

int __init fsl_mc_allocator_driver_init(void);

void fsl_mc_allocator_driver_exit(void);

void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev);

void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
Expand Down

0 comments on commit 1e8ac83

Please sign in to comment.