diff options
author | David S. Miller <davem@davemloft.net> | 2008-05-01 04:12:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-02 08:22:50 -0400 |
commit | c26d3c0138970778fabe114df99dffb34a04b1d7 (patch) | |
tree | 4263f625d30e1a728e7ad0650f18d0364b072806 /arch/sparc64/kernel/pci_common.c | |
parent | 886c35fbcf6fb2eee15687efc2d64d99b6ad9a4a (diff) |
sparc64: Stop creating dummy root PCI host controller devices.
It just creates confusion, errors, and bugs.
For one thing, this can cause dup sysfs or procfs nodes to get
created:
[ 1.198015] proc_dir_entry '00.0' already registered
[ 1.198036] Call Trace:
[ 1.198052] [00000000004f2534] create_proc_entry+0x7c/0x98
[ 1.198092] [00000000005719e4] pci_proc_attach_device+0xa4/0xd4
[ 1.198126] [00000000007d991c] pci_proc_init+0x64/0x88
[ 1.198158] [00000000007c62a4] kernel_init+0x190/0x330
[ 1.198183] [0000000000426cf8] kernel_thread+0x38/0x48
[ 1.198210] [00000000006a0d90] rest_init+0x18/0x5c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci_common.c')
-rw-r--r-- | arch/sparc64/kernel/pci_common.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/pci_common.c b/arch/sparc64/kernel/pci_common.c index 923e0bcc3bfd..19fa621d6a60 100644 --- a/arch/sparc64/kernel/pci_common.c +++ b/arch/sparc64/kernel/pci_common.c | |||
@@ -264,9 +264,6 @@ static int sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, | |||
264 | unsigned int func = PCI_FUNC(devfn); | 264 | unsigned int func = PCI_FUNC(devfn); |
265 | unsigned long ret; | 265 | unsigned long ret; |
266 | 266 | ||
267 | if (!bus && devfn == 0x00) | ||
268 | return pci_host_bridge_read_pci_cfg(bus_dev, devfn, where, | ||
269 | size, value); | ||
270 | if (config_out_of_range(pbm, bus, devfn, where)) { | 267 | if (config_out_of_range(pbm, bus, devfn, where)) { |
271 | ret = ~0UL; | 268 | ret = ~0UL; |
272 | } else { | 269 | } else { |
@@ -300,9 +297,6 @@ static int sun4v_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, | |||
300 | unsigned int func = PCI_FUNC(devfn); | 297 | unsigned int func = PCI_FUNC(devfn); |
301 | unsigned long ret; | 298 | unsigned long ret; |
302 | 299 | ||
303 | if (!bus && devfn == 0x00) | ||
304 | return pci_host_bridge_write_pci_cfg(bus_dev, devfn, where, | ||
305 | size, value); | ||
306 | if (config_out_of_range(pbm, bus, devfn, where)) { | 300 | if (config_out_of_range(pbm, bus, devfn, where)) { |
307 | /* Do nothing. */ | 301 | /* Do nothing. */ |
308 | } else { | 302 | } else { |