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 40d2e02..3cc0e4b 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 de49590..62ed37c 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;
 }