firmware: google: Release devices before unregistering the bus
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Mon, 18 Nov 2019 10:19:29 +0000 (11:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 20:46:48 +0000 (21:46 +0100)
commitcae0970ee9c4527f189aac378c50e2f0ed020418
treeab25ca88b3f367551626822dd858f9cc8819c0a7
parent89d93c6dab87f9f416b5ae931f7ad07b77aaca66
firmware: google: Release devices before unregistering the bus

Fix a bug where the kernel module can't be loaded after it has been
unloaded as the devices are still present and conflicting with the
to be created coreboot devices.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Link: https://lore.kernel.org/r/20191118101934.22526-2-patrick.rudolph@9elements.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/google/coreboot_table.c