diff options
author | Emilio Perez <emiliopeju@gmail.com> | 2023-11-22 21:34:28 +0100 |
---|---|---|
committer | Corey Minyard <minyard@acm.org> | 2023-12-19 13:32:27 +0100 |
commit | 242c6fd473a6a74eac4d4002be715a0d0dede036 (patch) | |
tree | 73b474a0c55a9f0e6a24580d2e9d92c93e9d0b04 /drivers/char/ipmi | |
parent | ipmi: si: Use device_get_match_data() (diff) | |
download | linux-242c6fd473a6a74eac4d4002be715a0d0dede036.tar.xz linux-242c6fd473a6a74eac4d4002be715a0d0dede036.zip |
ipmi: Use regspacings passed as a module parameter
regspacings parameter is currently ignored and the platform data uses a
default value of 0, this has been fixed by setting the appropriate field
in the platform data.
Fixes: 3cd83bac481d ("ipmi: Consolidate the adding of platform devices")
Signed-off-by: Emilio Perez <emiliopeju@gmail.com>
Message-Id: <20231122203433.443098-1-emiliopeju@gmail.com>
Signed-off-by: Corey Minyard <minyard@acm.org>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_hardcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_hardcode.c b/drivers/char/ipmi/ipmi_si_hardcode.c index ed5e91b1e040..0c92fa3eee88 100644 --- a/drivers/char/ipmi/ipmi_si_hardcode.c +++ b/drivers/char/ipmi/ipmi_si_hardcode.c @@ -80,10 +80,10 @@ static void __init ipmi_hardcode_init_one(const char *si_type_str, } p.regsize = regsizes[i]; + p.regspacing = regspacings[i]; p.slave_addr = slave_addrs[i]; p.addr_source = SI_HARDCODED; p.regshift = regshifts[i]; - p.regsize = regsizes[i]; p.addr = addr; p.space = addr_space; |