summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-08-26 08:11:42 +0000
committerStefano Babic <sbabic@denx.de>2019-10-08 16:35:59 +0200
commitbcf94abd1cab06d066142aa39aa044b94071c5b7 (patch)
tree8c7cfeb891a5f8188a84c6f5bde58d77d91662b0 /arch/arm/mach-imx
parentb5661caf84cdc28315bb759f823c83ae7d4a4ab6 (diff)
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 <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/imx8/cpu.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index f2fa262ac8..667f829acd 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -60,17 +60,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;
}