usb :fsl: Change string format for errata property
authorNikhil Badola <nikhil.badola@freescale.com>
Mon, 24 Jun 2019 07:22:19 +0000 (15:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 16:52:20 +0000 (18:52 +0200)
Remove USB errata checking code from driver. Applicability of erratum
is retrieved by reading corresponding property in device tree.
This property is written during device tree fixup.

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
Link: https://lore.kernel.org/r/20190624072219.15258-5-yinbo.zhu@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fsl-mph-dr-of.c

index 762b97600ab084b452a7d6c304179bc0a1992dc5..ae8f60f6e6a5e092bfd314e143fdf6816079e912 100644 (file)
@@ -226,11 +226,8 @@ static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev)
                of_property_read_bool(np, "fsl,usb_erratum-a005697");
        pdata->has_fsl_erratum_a006918 =
                of_property_read_bool(np, "fsl,usb_erratum-a006918");
-
-       if (of_get_property(np, "fsl,usb_erratum_14", NULL))
-               pdata->has_fsl_erratum_14 = 1;
-       else
-               pdata->has_fsl_erratum_14 = 0;
+       pdata->has_fsl_erratum_14 =
+               of_property_read_bool(np, "fsl,usb_erratum-14");
 
        /*
         * Determine whether phy_clk_valid needs to be checked