mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
imx: imx8ulp: Fix MU device probe failure
Since latest DTS has added multiple MU nodes, using compatible string to find the device node is not proper. It finds the first node with the compatible string matched even the node is disabled. Signed-off-by: Ye Li <ye.li@nxp.com>
This commit is contained in:
@@ -673,11 +673,9 @@ int arch_cpu_init(void)
|
||||
static int imx8ulp_check_mu(void *ctx, struct event *event)
|
||||
{
|
||||
struct udevice *devp;
|
||||
int node, ret;
|
||||
int ret;
|
||||
|
||||
node = fdt_node_offset_by_compatible(gd->fdt_blob, -1, "fsl,imx8ulp-mu");
|
||||
|
||||
ret = uclass_get_device_by_of_offset(UCLASS_MISC, node, &devp);
|
||||
ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(imx8ulp_mu), &devp);
|
||||
if (ret) {
|
||||
printf("could not get S400 mu %d\n", ret);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user