"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drivers/pci/remove.c" between
linux-3.16.62.tar.xz and linux-3.16.63.tar.xz

About: The full source of the Linux kernel 3.16.x (longterm stable)

remove.c  (linux-3.16.62.tar.xz):remove.c  (linux-3.16.63.tar.xz)
skipping to change at line 28 skipping to change at line 28
static void pci_stop_dev(struct pci_dev *dev) static void pci_stop_dev(struct pci_dev *dev)
{ {
pci_pme_active(dev, false); pci_pme_active(dev, false);
if (dev->is_added) { if (dev->is_added) {
pci_proc_detach_device(dev); pci_proc_detach_device(dev);
pci_remove_sysfs_dev_files(dev); pci_remove_sysfs_dev_files(dev);
device_release_driver(&dev->dev); device_release_driver(&dev->dev);
dev->is_added = 0; dev->is_added = 0;
} }
if (dev->bus->self)
pcie_aspm_exit_link_state(dev);
} }
static void pci_destroy_dev(struct pci_dev *dev) static void pci_destroy_dev(struct pci_dev *dev)
{ {
if (!dev->dev.kobj.parent) if (!dev->dev.kobj.parent)
return; return;
device_del(&dev->dev); device_del(&dev->dev);
down_write(&pci_bus_sem); down_write(&pci_bus_sem);
list_del(&dev->bus_list); list_del(&dev->bus_list);
up_write(&pci_bus_sem); up_write(&pci_bus_sem);
pcie_aspm_exit_link_state(dev);
pci_free_resources(dev); pci_free_resources(dev);
put_device(&dev->dev); put_device(&dev->dev);
} }
void pci_remove_bus(struct pci_bus *bus) void pci_remove_bus(struct pci_bus *bus)
{ {
pci_proc_detach_bus(bus); pci_proc_detach_bus(bus);
down_write(&pci_bus_sem); down_write(&pci_bus_sem);
list_del(&bus->node); list_del(&bus->node);
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)