diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-11-04 06:51:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-04 11:59:40 -0500 |
commit | 9c1fc209138a7c1ee439c7b05fde484441c84e7e (patch) | |
tree | f9be8eecfab1b7e3b39bcc5e38c7ff2c234e66f8 /sound/soc/fsl | |
parent | 3d8f7318f929f3b84571ffac2ef7bf8bddfb6d41 (diff) |
ASoC: fsl: fsl_spdif: No need to check the return value of platform_get_resource()
When using devm_ioremap_resource(), we do not need to check the return value of
platform_get_resource(), so just remove it.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl_spdif.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index e1bf5ef31bdd..bab95d7ad0ac 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c | |||
@@ -1107,11 +1107,6 @@ static int fsl_spdif_probe(struct platform_device *pdev) | |||
1107 | 1107 | ||
1108 | /* Get the addresses and IRQ */ | 1108 | /* Get the addresses and IRQ */ |
1109 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1109 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1110 | if (!res) { | ||
1111 | dev_err(&pdev->dev, "could not determine device resources\n"); | ||
1112 | return -ENXIO; | ||
1113 | } | ||
1114 | |||
1115 | regs = devm_ioremap_resource(&pdev->dev, res); | 1110 | regs = devm_ioremap_resource(&pdev->dev, res); |
1116 | if (IS_ERR(regs)) | 1111 | if (IS_ERR(regs)) |
1117 | return PTR_ERR(regs); | 1112 | return PTR_ERR(regs); |