MIPS: ip22-gio: fix kfree() of static object

The gio bus root device is a statically allocated object which must not
be freed by kfree() on failure to register the device or bus.

Fixes: 82242d28ff ("MIPS: IP22: Add missing put_device call")
Cc: stable@vger.kernel.org	# 3.17
Cc: Levente Kurusa <levex@linux.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
Johan Hovold 2026-04-24 12:28:45 +02:00 committed by Thomas Bogendoerfer
parent 8b498817d6
commit c62cdd3e91

View File

@ -30,7 +30,6 @@ static struct {
static void gio_bus_release(struct device *dev)
{
kfree(dev);
}
static struct device gio_bus = {