ASoC: fsl_ssi: No need call of_device_is_available()
Subsystems (3)
Fabio Estevam
reviewerPATCH 1/1 ASoC: fsl_ssi: No need call of_device_is_available()
From: Fabio Estevam <[email protected]>
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 <[email protected]>
--- sound/soc/fsl/fsl_ssi.c | 7 ------- 1 file changed, 7 deletions(-)
sound/soc/fsl/fsl_ssi.c +0 -7
@@ -1292,13 +1292,6 @@ static int fsl_ssi_probe(struct platform_device *pdev)void __iomem *iomem;char name[64 ]; -/* SSIs that are not connected on the board should have a -* status = "disabled" -* property in their device tree nodes. -*/ -if (!of_device_is_available (np)) -return -ENODEV ; - of_id =of_match_device (fsl_ssi_ids, &pdev->dev);if (!of_id || !of_id->data)return -EINVAL ;
Signature · 1 line
1.9.1
Quoted 7 lines · Fabio Estevam
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<[email protected]>
Acked-by Timur Tabi <[email protected]>
Quoted 4 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
The comment and the call to
of_device_is_available()are not really needed.
Applied, thanks.