kunit_init_device() should unregister the device on bus register error, but mistakenly it tries to unregister the bus.
Unregister the device instead of the bus.
…
Reviewed-by: Greg Kroah-Hartman gregkh@linuxfoundation.org
Would you ever like to distinguish hardware register errors from item registration failures according to further improved commit messages?
Regards, Markus