Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348262
b: refs/heads/master
c: f7eaacc
h: refs/heads/master
v: v3
  • Loading branch information
Michal Simek committed Jan 4, 2013
1 parent aeea628 commit 585af59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e1ec2d0b499298a502a46573c87d74a6052dfa1
refs/heads/master: f7eaacc19c6f43ff9c897ad13a7893d298aab6fa
11 changes: 5 additions & 6 deletions trunk/arch/microblaze/pci/pci-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static struct resource *__pci_mmap_make_offset(struct pci_dev *dev,
unsigned long io_offset = 0;
int i, res_bit;

if (hose == 0)
if (!hose)
return NULL; /* should never happen */

/* If memory, add on the PCI bridge address offset */
Expand Down Expand Up @@ -822,8 +822,6 @@ void __devinit pci_process_bridge_OF_ranges(struct pci_controller *hose,
/* Decide whether to display the domain number in /proc */
int pci_proc_domain(struct pci_bus *bus)
{
struct pci_controller *hose = pci_bus_to_host(bus);

return 0;
}

Expand Down Expand Up @@ -1124,7 +1122,7 @@ static int __init reparent_resources(struct resource *parent,
* as well.
*/

void pcibios_allocate_bus_resources(struct pci_bus *bus)
static void pcibios_allocate_bus_resources(struct pci_bus *bus)
{
struct pci_bus *b;
int i;
Expand Down Expand Up @@ -1179,7 +1177,7 @@ void pcibios_allocate_bus_resources(struct pci_bus *bus)
}
printk(KERN_WARNING "PCI: Cannot allocate resource region "
"%d of PCI bridge %d, will remap\n", i, bus->number);
clear_resource:

res->start = res->end = 0;
res->flags = 0;
}
Expand Down Expand Up @@ -1433,7 +1431,8 @@ static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, s
res->end = res->start + IO_SPACE_LIMIT;
res->flags = IORESOURCE_IO;
}
pci_add_resource_offset(resources, res, hose->io_base_virt - _IO_BASE);
pci_add_resource_offset(resources, res,
(__force resource_size_t)(hose->io_base_virt - _IO_BASE));

pr_debug("PCI: PHB IO resource = %016llx-%016llx [%lx]\n",
(unsigned long long)res->start,
Expand Down

0 comments on commit 585af59

Please sign in to comment.