diff options
| author | Chen Jun <[email protected]> | 2024-02-20 11:14:29 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-02-21 17:40:00 +0000 |
| commit | fb33a46cd75e18773dd5a414744507d84ae90870 (patch) | |
| tree | 23c25e75360133bdd62154d2a590f15a1dbb1847 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | PCI/MSI: Prevent MSI hardware interrupt number truncation (diff) | |
| download | kernel-fb33a46cd75e18773dd5a414744507d84ae90870.tar.gz kernel-fb33a46cd75e18773dd5a414744507d84ae90870.zip | |
irqchip/mbigen: Don't use bus_get_dev_root() to find the parent
bus_get_dev_root() returns sp->dev_root which is set in subsys_register(),
but subsys_register() is not called by platform_bus_init().
Therefor for the platform_bus_type, bus_get_dev_root() always returns NULL.
This makes mbigen_of_create_domain() always return -ENODEV.
Don't try to retrieve the parent via bus_get_dev_root() and
unconditionally hand a NULL pointer to of_platform_device_create() to
fix this.
Fixes: fea087fc291b ("irqchip/mbigen: move to use bus_get_dev_root()")
Signed-off-by: Chen Jun <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
