summaryrefslogtreecommitdiffstats
path: root/lib/kunit/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kunit/device.c')
-rw-r--r--lib/kunit/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kunit/device.c b/lib/kunit/device.c
index 3a31fe9ed..abc603730 100644
--- a/lib/kunit/device.c
+++ b/lib/kunit/device.c
@@ -36,7 +36,7 @@ struct kunit_device {
#define to_kunit_device(d) container_of_const(d, struct kunit_device, dev)
-static struct bus_type kunit_bus_type = {
+static const struct bus_type kunit_bus_type = {
.name = "kunit",
};
@@ -51,7 +51,7 @@ int kunit_bus_init(void)
error = bus_register(&kunit_bus_type);
if (error)
- root_device_unregister(kunit_bus_device);
+ bus_unregister(&kunit_bus_type);
return error;
}