|
@@ -206,6 +206,8 @@ static int pci_olpc_read(unsigned int seg, unsigned int bus,
|
|
|
{
|
|
|
uint32_t *addr;
|
|
|
|
|
|
+ WARN_ON(seg);
|
|
|
+
|
|
|
/* Use the hardware mechanism for non-simulated devices */
|
|
|
if (!is_simulated(bus, devfn))
|
|
|
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,
|
|
|
static int pci_olpc_write(unsigned int seg, unsigned int bus,
|
|
|
unsigned int devfn, int reg, int len, uint32_t value)
|
|
|
{
|
|
|
+ WARN_ON(seg);
|
|
|
+
|
|
|
/* Use the hardware mechanism for non-simulated devices */
|
|
|
if (!is_simulated(bus, devfn))
|
|
|
return pci_direct_conf1.write(seg, bus, devfn, reg, len, value);
|