diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-06-30 11:08:46 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-07-09 22:13:10 +0200 |
commit | 724948106ed236fc528c720ae12c79af7e2aea4e (patch) | |
tree | e47bd307cc6078a269a4d8d48c48527695060232 /drivers | |
parent | fc0a1f035cf15f704f4092da294963c57e94c1c0 (diff) |
i2c: xgene-slimpro: Fix missing mbox_free_channel call in probe error path
Free requested mailbox channel before return error.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-xgene-slimpro.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index dcca7076231e..1c9cb65ac4cf 100644 --- a/drivers/i2c/busses/i2c-xgene-slimpro.c +++ b/drivers/i2c/busses/i2c-xgene-slimpro.c @@ -419,6 +419,7 @@ static int xgene_slimpro_i2c_probe(struct platform_device *pdev) rc = i2c_add_adapter(adapter); if (rc) { dev_err(&pdev->dev, "Adapter registeration failed\n"); + mbox_free_channel(ctx->mbox_chan); return rc; } |