diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c index 7fcd8e4285ea..603697e5c116 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/staging/greybus/operation.c @@ -493,8 +493,8 @@ int gb_operation_init(void) void gb_operation_exit(void) { - kmem_cache_destroy(gb_operation_cache); - gb_operation_cache = NULL; destroy_workqueue(gb_operation_recv_workqueue); gb_operation_recv_workqueue = NULL; + kmem_cache_destroy(gb_operation_cache); + gb_operation_cache = NULL; }