thunderbolt: merge fix for kunix_resource changes
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Jun 2020 05:51:50 +0000 (15:51 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 Aug 2020 18:06:10 +0000 (11:06 -0700)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/thunderbolt/test.c

index acb8b62..a4d7881 100644 (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);
 }