From: Ye Li Date: Wed, 6 Mar 2019 07:56:58 +0000 (-0800) Subject: MLK-21827 imx8: Probe the SCU driver by using uclass function X-Git-Tag: rel_imx_4.19.35_1.1.0~902 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=0bf270688749afe55e63ee383102295065ede69b;p=u-boot.git MLK-21827 imx8: Probe the SCU driver by using uclass function Since SCU MU driver has been bound in dm_init, so we don't need to bind it again. Just replace by using uclass function to probe it. Signed-off-by: Ye Li --- diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index 4bbc956f9d..921334c011 100644 --- a/arch/arm/mach-imx/imx8/cpu.c +++ b/arch/arm/mach-imx/imx8/cpu.c @@ -59,17 +59,10 @@ int arch_cpu_init_dm(void) int node, ret; node = fdt_node_offset_by_compatible(gd->fdt_blob, -1, "fsl,imx8-mu"); - ret = device_bind_driver_to_node(gd->dm_root, "imx8_scu", "imx8_scu", - offset_to_ofnode(node), &devp); + ret = uclass_get_device_by_of_offset(UCLASS_MISC, node, &devp); if (ret) { - printf("could not find scu %d\n", ret); - return ret; - } - - ret = device_probe(devp); - if (ret) { - printf("scu probe failed %d\n", ret); + printf("could not get scu %d\n", ret); return ret; }