mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
PCI/portdrv: Drop empty shutdown callback
.shutdown() is an optional callback and the core only calls it if the pointer in struct device_driver is non-NULL. So make nothing in a bit shorter time and remove the empty function. Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://patch.msgid.link/283fef06ac51efbb7df25f347d6f3a2967f96429.1764688034.git.u.kleine-koenig@baylibre.com
This commit is contained in:
parent
01464a3fdf
commit
15fff3b799
|
|
@ -564,17 +564,6 @@ static int pcie_port_remove_service(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* pcie_port_shutdown_service - shut down given PCI Express port service
|
||||
* @dev: PCI Express port service device to handle
|
||||
*
|
||||
* If PCI Express port service driver is registered with
|
||||
* pcie_port_service_register(), this function will be called by the driver core
|
||||
* when device_shutdown() is called for the port service device associated
|
||||
* with the driver.
|
||||
*/
|
||||
static void pcie_port_shutdown_service(struct device *dev) {}
|
||||
|
||||
/**
|
||||
* pcie_port_service_register - register PCI Express port service driver
|
||||
* @new: PCI Express port service driver to register
|
||||
|
|
@ -588,7 +577,6 @@ int pcie_port_service_register(struct pcie_port_service_driver *new)
|
|||
new->driver.bus = &pcie_port_bus_type;
|
||||
new->driver.probe = pcie_port_probe_service;
|
||||
new->driver.remove = pcie_port_remove_service;
|
||||
new->driver.shutdown = pcie_port_shutdown_service;
|
||||
|
||||
return driver_register(&new->driver);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user