ASoC: fsl_ssi: No need call of_device_is_available()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 8 May 2015 02:24:16 +0000 (23:24 -0300)
committerMark Brown <broonie@kernel.org>
Fri, 8 May 2015 11:05:43 +0000 (12:05 +0100)
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>
sound/soc/fsl/fsl_ssi.c

index e8bb8eef1d16bee3d9d8ca5e4b7e4d5a7a026267..5199c0fb9edfcb08f97e01764dd81e3b826d71e5 100644 (file)
@@ -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;