Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

irqchip/mbigen: move to use bus_get_dev_root()

Direct access to the struct bus_type dev_root pointer is going away soon
so replace that with a call to bus_get_dev_root() instead, which is what
it is there for.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230313182918.1312597-21-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+8 -5
+8 -5
drivers/irqchip/irq-mbigen.c
··· 245 245 if (!of_property_read_bool(np, "interrupt-controller")) 246 246 continue; 247 247 248 - parent = platform_bus_type.dev_root; 249 - child = of_platform_device_create(np, NULL, parent); 250 - if (!child) { 251 - of_node_put(np); 252 - return -ENOMEM; 248 + parent = bus_get_dev_root(&platform_bus_type); 249 + if (parent) { 250 + child = of_platform_device_create(np, NULL, parent); 251 + put_device(parent); 252 + if (!child) { 253 + of_node_put(np); 254 + return -ENOMEM; 255 + } 253 256 } 254 257 255 258 if (of_property_read_u32(child->dev.of_node, "num-pins",