summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-12 15:19:57 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-05-18 11:59:44 +0200
commit5f68d04d39eeb16b9ea7639f62c4ae59163b4813 (patch)
tree1de9b6ed59f34a146d0e7610bbd5d03c12db61fe /sound/soc
parent02fdb79f3623de6281dae9ae26ff5a8e1aa58970 (diff)
sound/soc/fsl: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/fsl/imx-ssi.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c
index 902fab02b851..c6fa03e2114a 100644
--- a/sound/soc/fsl/imx-ssi.c
+++ b/sound/soc/fsl/imx-ssi.c
@@ -540,11 +540,6 @@ static int imx_ssi_probe(struct platform_device *pdev)
clk_prepare_enable(ssi->clk);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- ret = -ENODEV;
- goto failed_get_resource;
- }
-
ssi->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(ssi->base)) {
ret = PTR_ERR(ssi->base);
@@ -633,7 +628,6 @@ failed_pdev_fiq_alloc:
snd_soc_unregister_component(&pdev->dev);
failed_register:
release_mem_region(res->start, resource_size(res));
-failed_get_resource:
clk_disable_unprepare(ssi->clk);
failed_clk: