diff options
Diffstat (limited to 'arch/x86/pci/olpc.c')
-rw-r--r-- | arch/x86/pci/olpc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/pci/olpc.c b/arch/x86/pci/olpc.c index 13700ec8e2e4..5262603b04d9 100644 --- a/arch/x86/pci/olpc.c +++ b/arch/x86/pci/olpc.c | |||
@@ -206,6 +206,8 @@ static int pci_olpc_read(unsigned int seg, unsigned int bus, | |||
206 | { | 206 | { |
207 | uint32_t *addr; | 207 | uint32_t *addr; |
208 | 208 | ||
209 | WARN_ON(seg); | ||
210 | |||
209 | /* Use the hardware mechanism for non-simulated devices */ | 211 | /* Use the hardware mechanism for non-simulated devices */ |
210 | if (!is_simulated(bus, devfn)) | 212 | if (!is_simulated(bus, devfn)) |
211 | return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); | 213 | return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); |
@@ -264,6 +266,8 @@ static int pci_olpc_read(unsigned int seg, unsigned int bus, | |||
264 | static int pci_olpc_write(unsigned int seg, unsigned int bus, | 266 | static int pci_olpc_write(unsigned int seg, unsigned int bus, |
265 | unsigned int devfn, int reg, int len, uint32_t value) | 267 | unsigned int devfn, int reg, int len, uint32_t value) |
266 | { | 268 | { |
269 | WARN_ON(seg); | ||
270 | |||
267 | /* Use the hardware mechanism for non-simulated devices */ | 271 | /* Use the hardware mechanism for non-simulated devices */ |
268 | if (!is_simulated(bus, devfn)) | 272 | if (!is_simulated(bus, devfn)) |
269 | return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); | 273 | return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); |