diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-05-07 22:24:16 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-08 07:05:43 -0400 |
commit | ff9174d57a8239c5a21d2a0c7e00dddd54953f6c (patch) | |
tree | fa0fd81a2b3263897969e6e055ca8191099b993a | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) |
ASoC: fsl_ssi: No need call of_device_is_available()
The comment and the call to of_device_is_available() are not really
needed.
It is the expected behaviour to probe only the ssi nodes that are
enabled in the device tree.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index e8bb8eef1d16..5199c0fb9edf 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -1292,13 +1292,6 @@ static int fsl_ssi_probe(struct platform_device *pdev) | |||
1292 | void __iomem *iomem; | 1292 | void __iomem *iomem; |
1293 | char name[64]; | 1293 | char name[64]; |
1294 | 1294 | ||
1295 | /* SSIs that are not connected on the board should have a | ||
1296 | * status = "disabled" | ||
1297 | * property in their device tree nodes. | ||
1298 | */ | ||
1299 | if (!of_device_is_available(np)) | ||
1300 | return -ENODEV; | ||
1301 | |||
1302 | of_id = of_match_device(fsl_ssi_ids, &pdev->dev); | 1295 | of_id = of_match_device(fsl_ssi_ids, &pdev->dev); |
1303 | if (!of_id || !of_id->data) | 1296 | if (!of_id || !of_id->data) |
1304 | return -EINVAL; | 1297 | return -EINVAL; |