Commit 1adc9105 authored by Corey Minyard's avatar Corey Minyard

ipmi: Use the proper default value for register size in ACPI

It's the proper value, so there's no effect, but just to be proper,
use the right value.
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent bf10ff69
...@@ -1942,7 +1942,7 @@ static int hotmod_handler(const char *val, struct kernel_param *kp) ...@@ -1942,7 +1942,7 @@ static int hotmod_handler(const char *val, struct kernel_param *kp)
info->io.regspacing = DEFAULT_REGSPACING; info->io.regspacing = DEFAULT_REGSPACING;
info->io.regsize = regsize; info->io.regsize = regsize;
if (!info->io.regsize) if (!info->io.regsize)
info->io.regsize = DEFAULT_REGSPACING; info->io.regsize = DEFAULT_REGSIZE;
info->io.regshift = regshift; info->io.regshift = regshift;
info->irq = irq; info->irq = irq;
if (info->irq) if (info->irq)
...@@ -2036,7 +2036,7 @@ static int hardcode_find_bmc(void) ...@@ -2036,7 +2036,7 @@ static int hardcode_find_bmc(void)
info->io.regspacing = DEFAULT_REGSPACING; info->io.regspacing = DEFAULT_REGSPACING;
info->io.regsize = regsizes[i]; info->io.regsize = regsizes[i];
if (!info->io.regsize) if (!info->io.regsize)
info->io.regsize = DEFAULT_REGSPACING; info->io.regsize = DEFAULT_REGSIZE;
info->io.regshift = regshifts[i]; info->io.regshift = regshifts[i];
info->irq = irqs[i]; info->irq = irqs[i];
if (info->irq) if (info->irq)
...@@ -2395,7 +2395,7 @@ static void try_init_dmi(struct dmi_ipmi_data *ipmi_data) ...@@ -2395,7 +2395,7 @@ static void try_init_dmi(struct dmi_ipmi_data *ipmi_data)
info->io.regspacing = ipmi_data->offset; info->io.regspacing = ipmi_data->offset;
if (!info->io.regspacing) if (!info->io.regspacing)
info->io.regspacing = DEFAULT_REGSPACING; info->io.regspacing = DEFAULT_REGSPACING;
info->io.regsize = DEFAULT_REGSPACING; info->io.regsize = DEFAULT_REGSIZE;
info->io.regshift = 0; info->io.regshift = 0;
info->slave_addr = ipmi_data->slave_addr; info->slave_addr = ipmi_data->slave_addr;
...@@ -2761,7 +2761,7 @@ static int acpi_ipmi_probe(struct platform_device *dev) ...@@ -2761,7 +2761,7 @@ static int acpi_ipmi_probe(struct platform_device *dev)
info->io.regspacing = info->io.regspacing =
res_second->start - info->io.addr_data; res_second->start - info->io.addr_data;
} }
info->io.regsize = DEFAULT_REGSPACING; info->io.regsize = DEFAULT_REGSIZE;
info->io.regshift = 0; info->io.regshift = 0;
/* If _GPE exists, use it; otherwise use standard interrupts */ /* If _GPE exists, use it; otherwise use standard interrupts */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment