Commit e9638767 authored by Dan Carpenter's avatar Dan Carpenter Committed by Corey Minyard

ipmi: kcs: Fix aspeed_kcs_probe_of_v1()

This needs to return the newly allocated struct but instead it returns
zero which leads to an immediate Oops in the caller.

Fixes: 09f5f680 ("ipmi: kcs: aspeed: Implement v2 bindings")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Message-Id: <20200407122149.GA100026@mwanda>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 562bf770
...@@ -271,7 +271,7 @@ static struct kcs_bmc *aspeed_kcs_probe_of_v1(struct platform_device *pdev) ...@@ -271,7 +271,7 @@ static struct kcs_bmc *aspeed_kcs_probe_of_v1(struct platform_device *pdev)
kcs->ioreg = ast_kcs_bmc_ioregs[channel - 1]; kcs->ioreg = ast_kcs_bmc_ioregs[channel - 1];
aspeed_kcs_set_address(kcs, slave); aspeed_kcs_set_address(kcs, slave);
return 0; return kcs;
} }
static int aspeed_kcs_calculate_channel(const struct kcs_ioreg *regs) static int aspeed_kcs_calculate_channel(const struct kcs_ioreg *regs)
......
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