mcb: use short version for function pointer for mcb_free_bus
Just a style change so that the device release callbacks are defined in the same way for devices in mcb_bus and mcb_device. Signed-off-by: Jorge Sanjuan Garcia <jorge.sanjuangarcia@duagon.com> Co-developed-by: Jose Javier Rodriguez Barbarin <JoseJavier.Rodriguez@duagon.com> Signed-off-by: Jose Javier Rodriguez Barbarin <JoseJavier.Rodriguez@duagon.com> Link: https://lore.kernel.org/r/20230906114901.63174-3-JoseJavier.Rodriguez@duagon.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8a749fd1a8
commit
78510a4db8
@ -288,7 +288,7 @@ struct mcb_bus *mcb_alloc_bus(struct device *carrier)
|
||||
bus->dev.parent = carrier;
|
||||
bus->dev.bus = &mcb_bus_type;
|
||||
bus->dev.type = &mcb_carrier_device_type;
|
||||
bus->dev.release = &mcb_free_bus;
|
||||
bus->dev.release = mcb_free_bus;
|
||||
|
||||
dev_set_name(&bus->dev, "mcb:%d", bus_nr);
|
||||
rc = device_add(&bus->dev);
|
||||
|
Loading…
Reference in New Issue
Block a user