rb532-pci.patch 835 B

1234567891011121314151617181920212223242526
  1. diff -Nur linux-3.14.3.orig/arch/mips/pci/pci.c linux-3.14.3/arch/mips/pci/pci.c
  2. --- linux-3.14.3.orig/arch/mips/pci/pci.c 2014-05-06 16:59:58.000000000 +0200
  3. +++ linux-3.14.3/arch/mips/pci/pci.c 2014-05-11 10:13:26.000000000 +0200
  4. @@ -166,20 +166,10 @@
  5. void register_pci_controller(struct pci_controller *hose)
  6. {
  7. - struct resource *parent;
  8. -
  9. - parent = hose->mem_resource->parent;
  10. - if (!parent)
  11. - parent = &iomem_resource;
  12. -
  13. - if (request_resource(parent, hose->mem_resource) < 0)
  14. + if (request_resource(&iomem_resource, hose->mem_resource) < 0)
  15. goto out;
  16. - parent = hose->io_resource->parent;
  17. - if (!parent)
  18. - parent = &ioport_resource;
  19. -
  20. - if (request_resource(parent, hose->io_resource) < 0) {
  21. + if (request_resource(&ioport_resource, hose->io_resource) < 0) {
  22. release_resource(hose->mem_resource);
  23. goto out;
  24. }