mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:30:52 +07:00
[PATCH] Add rio_bus_type probe and remove methods
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b6a01e9bda
commit
fc3d3ddd3e
@ -147,8 +147,6 @@ int rio_register_driver(struct rio_driver *rdrv)
|
|||||||
/* initialize common driver fields */
|
/* initialize common driver fields */
|
||||||
rdrv->driver.name = rdrv->name;
|
rdrv->driver.name = rdrv->name;
|
||||||
rdrv->driver.bus = &rio_bus_type;
|
rdrv->driver.bus = &rio_bus_type;
|
||||||
rdrv->driver.probe = rio_device_probe;
|
|
||||||
rdrv->driver.remove = rio_device_remove;
|
|
||||||
|
|
||||||
/* register with core */
|
/* register with core */
|
||||||
return driver_register(&rdrv->driver);
|
return driver_register(&rdrv->driver);
|
||||||
@ -204,7 +202,9 @@ static struct device rio_bus = {
|
|||||||
struct bus_type rio_bus_type = {
|
struct bus_type rio_bus_type = {
|
||||||
.name = "rapidio",
|
.name = "rapidio",
|
||||||
.match = rio_match_bus,
|
.match = rio_match_bus,
|
||||||
.dev_attrs = rio_dev_attrs
|
.dev_attrs = rio_dev_attrs,
|
||||||
|
.probe = rio_device_probe,
|
||||||
|
.remove = rio_device_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user