]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am335x-ice: get CDCE913 clock device
authorDario Binacchi <dariobin@libero.it>
Tue, 29 Dec 2020 23:16:32 +0000 (00:16 +0100)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 12 Jan 2021 05:29:04 +0000 (10:59 +0530)
With support for other clock drivers, the potentially supported CDCE913
device can no longer be probed without specifying its DT node name.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
board/ti/am335x/board.c
board/ti/am43xx/board.c

index 40d2e0238fd524381bd180b22cc50f4ab1a1eec7..3cc0e4b91c0b2a21ba72e91a2ddb3880dbbddfb1 100644 (file)
@@ -879,7 +879,7 @@ int board_late_init(void)
        }
 
        /* Just probe the potentially supported cdce913 device */
-       uclass_get_device(UCLASS_CLK, 0, &dev);
+       uclass_get_device_by_name(UCLASS_CLK, "cdce913@65", &dev);
 
        return 0;
 }
index de4959003151c991027ce05be04ffb0941f6eacf..62ed37cb488934bd09672228a2962a8af4eff5da 100644 (file)
@@ -744,7 +744,7 @@ int board_late_init(void)
 #endif
 
        /* Just probe the potentially supported cdce913 device */
-       uclass_get_device(UCLASS_CLK, 0, &dev);
+       uclass_get_device_by_name(UCLASS_CLK, "cdce913@65", &dev);
 
        return 0;
 }