]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI/portdrv: Drop empty shutdown callback
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 2 Dec 2025 15:13:50 +0000 (16:13 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 13 Jan 2026 21:42:09 +0000 (15:42 -0600)
.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
drivers/pci/pcie/portdrv.c

index a0991da48213631cf5badcaa0fda7ed5e622b081..348d90315570e058737f46fc43d6183165d1c11e 100644 (file)
@@ -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);
 }