linux/drivers/pci/remove.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/pci.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>

#include "pci.h"

static void pci_free_resources(struct pci_dev *dev)
{}

static int pci_pwrctl_unregister(struct device *dev, void *data)
{}

static void pci_stop_dev(struct pci_dev *dev)
{}

static void pci_destroy_dev(struct pci_dev *dev)
{}

void pci_remove_bus(struct pci_bus *bus)
{}
EXPORT_SYMBOL();

static void pci_stop_bus_device(struct pci_dev *dev)
{}

static void pci_remove_bus_device(struct pci_dev *dev)
{}

/**
 * pci_stop_and_remove_bus_device - remove a PCI device and any children
 * @dev: the device to remove
 *
 * Remove a PCI device from the device lists, informing the drivers
 * that the device has been removed.  We also remove any subordinate
 * buses and children in a depth-first manner.
 *
 * For each device we remove, delete the device structure from the
 * device lists, remove the /proc entry, and notify userspace
 * (/sbin/hotplug).
 */
void pci_stop_and_remove_bus_device(struct pci_dev *dev)
{}
EXPORT_SYMBOL();

void pci_stop_and_remove_bus_device_locked(struct pci_dev *dev)
{}
EXPORT_SYMBOL_GPL();

void pci_stop_root_bus(struct pci_bus *bus)
{}
EXPORT_SYMBOL_GPL();

void pci_remove_root_bus(struct pci_bus *bus)
{}
EXPORT_SYMBOL_GPL();