diff options
| author | Ivan Kokshaysky <ink@jurassic.park.msu.ru> | 2003-06-22 21:45:05 -0700 |
|---|---|---|
| committer | Richard Henderson <rth@kanga.twiddle.net> | 2003-06-22 21:45:05 -0700 |
| commit | f8a30ee965cd14661c1de348536eaef21151013e (patch) | |
| tree | c2c78688c4e8cd50b5fc0462b8e2116419b729db /include/asm-alpha | |
| parent | 336aeeaa4afbc9f9ebac642162adc1fbc946ffd1 (diff) | |
[PATCH] PCI: fix alpha for reimplement pci proc name
On Fri, Jun 20, 2003 at 02:24:13PM -0700, Greg KH wrote:
> Thanks, I've reverted your previous patch, and fixed the one typo in
> this patch and applied it all to my bk tree. Hopefully Linus will pull
> from it sometime soon :)
Argh, where were my eyes... There was another typo which broke Alpha.
Diffstat (limited to 'include/asm-alpha')
| -rw-r--r-- | include/asm-alpha/pci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-alpha/pci.h b/include/asm-alpha/pci.h index 34d0376dc322..b203d40b9282 100644 --- a/include/asm-alpha/pci.h +++ b/include/asm-alpha/pci.h @@ -197,7 +197,8 @@ pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, /* Bus number == domain number until we get above 256 busses */ static inline int pci_name_bus(char *name, struct pci_bus *bus) { - int domain = pci_domain_nr(bus) + int domain = pci_domain_nr(bus); + if (domain < 256) { sprintf(name, "%02x", domain); } else { |
