diff options
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index c67ef3e47ad5..6ed213bd702c 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -1580,11 +1580,6 @@ static int try_init_acpi(int intf_num, struct smi_info **new_info) | |||
1580 | if (! is_new_interface(-1, addr_space, spmi->addr.address)) | 1580 | if (! is_new_interface(-1, addr_space, spmi->addr.address)) |
1581 | return -ENODEV; | 1581 | return -ENODEV; |
1582 | 1582 | ||
1583 | if (! spmi->addr.register_bit_width) { | ||
1584 | acpi_failure = 1; | ||
1585 | return -ENODEV; | ||
1586 | } | ||
1587 | |||
1588 | /* Figure out the interface type. */ | 1583 | /* Figure out the interface type. */ |
1589 | switch (spmi->InterfaceType) | 1584 | switch (spmi->InterfaceType) |
1590 | { | 1585 | { |
@@ -1634,9 +1629,6 @@ static int try_init_acpi(int intf_num, struct smi_info **new_info) | |||
1634 | regspacings[intf_num] = spmi->addr.register_bit_width / 8; | 1629 | regspacings[intf_num] = spmi->addr.register_bit_width / 8; |
1635 | info->io.regspacing = spmi->addr.register_bit_width / 8; | 1630 | info->io.regspacing = spmi->addr.register_bit_width / 8; |
1636 | } else { | 1631 | } else { |
1637 | /* Some broken systems get this wrong and set the value | ||
1638 | * to zero. Assume it is the default spacing. If that | ||
1639 | * is wrong, too bad, the vendor should fix the tables. */ | ||
1640 | regspacings[intf_num] = DEFAULT_REGSPACING; | 1632 | regspacings[intf_num] = DEFAULT_REGSPACING; |
1641 | info->io.regspacing = DEFAULT_REGSPACING; | 1633 | info->io.regspacing = DEFAULT_REGSPACING; |
1642 | } | 1634 | } |