aspeed: ast2500: Read clock ofdata in the correct method
[oweals/u-boot.git] / drivers / clk / aspeed / clk_ast2500.c
index 9249cf9cdfd5eb7b79fb8470a4676eab4455013a..b3a3f3d4dd9f7e9541939c4ce740236a24eaf6c0 100644 (file)
@@ -490,7 +490,7 @@ struct clk_ops ast2500_clk_ops = {
        .enable = ast2500_clk_enable,
 };
 
-static int ast2500_clk_probe(struct udevice *dev)
+static int ast2500_clk_ofdata_to_platdata(struct udevice *dev)
 {
        struct ast2500_clk_priv *priv = dev_get_priv(dev);
 
@@ -525,5 +525,5 @@ U_BOOT_DRIVER(aspeed_ast2500_scu) = {
        .priv_auto_alloc_size = sizeof(struct ast2500_clk_priv),
        .ops            = &ast2500_clk_ops,
        .bind           = ast2500_clk_bind,
-       .probe          = ast2500_clk_probe,
+       .ofdata_to_platdata             = ast2500_clk_ofdata_to_platdata,
 };