]> git.sur5r.net Git - u-boot/blobdiff - drivers/input/cros_ec_keyb.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / input / cros_ec_keyb.c
index 9bc4555c2eb6f8fc6343e3837526d5023a9af010..00381dcd720ac1b92b70d8afd4b52191d2c47d64 100644 (file)
@@ -189,7 +189,7 @@ static int cros_ec_kbd_probe(struct udevice *dev)
        struct stdio_dev *sdev = &uc_priv->sdev;
        struct input_config *input = &uc_priv->input;
        const void *blob = gd->fdt_blob;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        int ret;
 
        if (cros_ec_keyb_decode_fdt(blob, node, priv))