Commit fa049cc7 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] arch/arm/kernel/via82c505.c

(Included in 2.4)
johnpol@2ka.mipt.ru: 1) request_region:
  > 	Send them one at a time.  Last time I had to write a script to
  > mail them one at a time to myself.

  Ooops, sorry... I've got a gluk...

  > Thanks!
  > Rusty.
  > --
  >   Anyone who quotes me in their sig is an idiot. -- Rusty Russell.


  	Evgeniy Polyakov ( s0mbre )
parent a58a8db0
...@@ -79,8 +79,15 @@ void __init via82c505_preinit(void *sysdata) ...@@ -79,8 +79,15 @@ void __init via82c505_preinit(void *sysdata)
struct pci_bus *bus; struct pci_bus *bus;
printk(KERN_DEBUG "PCI: VIA 82c505\n"); printk(KERN_DEBUG "PCI: VIA 82c505\n");
request_region(0xA8,2,"via config"); if (!request_region(0xA8,2,"via config")) {
request_region(0xCF8,8,"pci config"); printk(KERN_WARNING"VIA 82c505: Unable to request region 0xA8\n");
return;
}
if (!request_region(0xCF8,8,"pci config")) {
printk(KERN_WARNING"VIA 82c505: Unable to request region 0xCF8\n");
release_region(0xA8, 2);
return;
}
/* Enable compatible Mode */ /* Enable compatible Mode */
outb(0x96,0xA8); outb(0x96,0xA8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment