Commit f8dc6eb7 authored by Wei Yongjun's avatar Wei Yongjun Committed by Scott Wood

powerpc/fsl_msi: fix error return code in fsl_of_msi_probe()

Fix to return a negative error code in the MSI bitmap alloc error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 4e0e3435
...@@ -370,7 +370,6 @@ static int fsl_of_msi_probe(struct platform_device *dev) ...@@ -370,7 +370,6 @@ static int fsl_of_msi_probe(struct platform_device *dev)
struct fsl_msi *msi; struct fsl_msi *msi;
struct resource res; struct resource res;
int err, i, j, irq_index, count; int err, i, j, irq_index, count;
int rc;
const u32 *p; const u32 *p;
const struct fsl_msi_feature *features; const struct fsl_msi_feature *features;
int len; int len;
...@@ -431,8 +430,8 @@ static int fsl_of_msi_probe(struct platform_device *dev) ...@@ -431,8 +430,8 @@ static int fsl_of_msi_probe(struct platform_device *dev)
*/ */
msi->phandle = dev->dev.of_node->phandle; msi->phandle = dev->dev.of_node->phandle;
rc = fsl_msi_init_allocator(msi); err = fsl_msi_init_allocator(msi);
if (rc) { if (err) {
dev_err(&dev->dev, "Error allocating MSI bitmap\n"); dev_err(&dev->dev, "Error allocating MSI bitmap\n");
goto error_out; goto error_out;
} }
......
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