diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-26 13:25:56 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-26 13:56:09 -0500 |
commit | 7ed37fc3289d2d7d9c33abbebc0ecc9343e17101 (patch) | |
tree | dbf8313e8ffa6b20fb604bcbcf474a30253bc612 /drivers/message | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
i2o: Fix I/O space allocation copy/paste error
When i2o_iop_systab_set() allocates I/O port space, it assigns the base of
the new I/O port region to sb->current_mem_base, not sb->current_io_base.
This looks like a copy/paste error, because we do use current_io_base, but
there's no other place that sets it.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/i2o/iop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/i2o/iop.c b/drivers/message/i2o/iop.c index a8c08f332da0..a8373d7aaef7 100644 --- a/drivers/message/i2o/iop.c +++ b/drivers/message/i2o/iop.c | |||
@@ -704,7 +704,7 @@ static int i2o_iop_systab_set(struct i2o_controller *c) | |||
704 | NULL, NULL) >= 0) { | 704 | NULL, NULL) >= 0) { |
705 | c->io_alloc = 1; | 705 | c->io_alloc = 1; |
706 | sb->current_io_size = resource_size(res); | 706 | sb->current_io_size = resource_size(res); |
707 | sb->current_mem_base = res->start; | 707 | sb->current_io_base = res->start; |
708 | osm_info("%s: allocated %llu bytes of PCI I/O at " | 708 | osm_info("%s: allocated %llu bytes of PCI I/O at " |
709 | "0x%016llX.\n", c->name, | 709 | "0x%016llX.\n", c->name, |
710 | (unsigned long long)resource_size(res), | 710 | (unsigned long long)resource_size(res), |