Skip to content

Commit

Permalink
ASoC: ux500_msp_i2s: Fix devm_* and return code merge error
Browse files Browse the repository at this point in the history
Some ux500_msp_i2s patches clashed with:

b18e93a
ASoC: ux500_msp_i2s: better use devm functions and fix error return code

... leaving the driver uncompilable. This patch fixes the
issues encountered.

Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Lee Jones authored and broonie committed Oct 16, 2012
1 parent 39013bd commit 0530494
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sound/soc/ux500/ux500_msp_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/pinctrl/consumer.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/of.h>

#include <mach/hardware.h>
Expand Down Expand Up @@ -697,14 +698,11 @@ int ux500_msp_i2s_init_msp(struct platform_device *pdev,
platform_data = devm_kzalloc(&pdev->dev,
sizeof(struct msp_i2s_platform_data), GFP_KERNEL);
if (!platform_data)
ret = -ENOMEM;
return -ENOMEM;
}
} else
if (!platform_data)
ret = -EINVAL;

if (ret)
goto err_res;
return -EINVAL;

dev_dbg(&pdev->dev, "%s: Enter (name: %s, id: %d).\n", __func__,
pdev->name, platform_data->id);
Expand Down

0 comments on commit 0530494

Please sign in to comment.