aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-02-19 11:01:20 -0500
committerRalf Baechle <ralf@linux-mips.org>2008-02-19 12:01:34 -0500
commit40d7c1aa6153605b3eae23990d4c2d4e8f807cb0 (patch)
treee823fb718c045be69ddf0b237e70a8c6765928a7 /arch
parent986c94854e5615000f39edfc788dffff7035ec7d (diff)
[MIPS] PCI: Coding style fixes for pcibios_enable_resources.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/pci/pci.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 1d10d6544152..f9471d77c096 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -183,7 +183,9 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask)
183 (!(r->flags & IORESOURCE_ROM_ENABLE))) 183 (!(r->flags & IORESOURCE_ROM_ENABLE)))
184 continue; 184 continue;
185 if (!r->start && r->end) { 185 if (!r->start && r->end) {
186 printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev)); 186 printk(KERN_ERR "PCI: Device %s not available "
187 "because of resource collisions\n",
188 pci_name(dev));
187 return -EINVAL; 189 return -EINVAL;
188 } 190 }
189 if (r->flags & IORESOURCE_IO) 191 if (r->flags & IORESOURCE_IO)
@@ -192,7 +194,8 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask)
192 cmd |= PCI_COMMAND_MEMORY; 194 cmd |= PCI_COMMAND_MEMORY;
193 } 195 }
194 if (cmd != old_cmd) { 196 if (cmd != old_cmd) {
195 printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd); 197 printk("PCI: Enabling device %s (%04x -> %04x)\n",
198 pci_name(dev), old_cmd, cmd);
196 pci_write_config_word(dev, PCI_COMMAND, cmd); 199 pci_write_config_word(dev, PCI_COMMAND, cmd);
197 } 200 }
198 return 0; 201 return 0;