thunderbolt: merge fix for kunix_resource changes

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Stephen Rothwell 2020-06-30 15:51:50 +10:00 committed by Linus Torvalds
parent 06a81c1c7d
commit 71fa1a4489

View File

@ -17,13 +17,13 @@ static int __ida_init(struct kunit_resource *res, void *context)
struct ida *ida = context;
ida_init(ida);
res->allocation = ida;
res->data = ida;
return 0;
}
static void __ida_destroy(struct kunit_resource *res)
{
struct ida *ida = res->allocation;
struct ida *ida = res->data;
ida_destroy(ida);
}