Skip to content

Commit 1e8ac83

Browse files
IoanaCiorneigregkh
authored andcommitted
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>
1 parent 5b04ced commit 1e8ac83

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/bus/fsl-mc/fsl-mc-allocator.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,3 +646,8 @@ int __init fsl_mc_allocator_driver_init(void)
646646
{
647647
return fsl_mc_driver_register(&fsl_mc_allocator_driver);
648648
}
649+
650+
void fsl_mc_allocator_driver_exit(void)
651+
{
652+
fsl_mc_driver_unregister(&fsl_mc_allocator_driver);
653+
}

drivers/bus/fsl-mc/fsl-mc-private.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ void dprc_driver_exit(void);
525525

526526
int __init fsl_mc_allocator_driver_init(void);
527527

528+
void fsl_mc_allocator_driver_exit(void);
529+
528530
void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
529531

530532
void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev);

0 commit comments

Comments
 (0)