]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/cmd_sf.c
dm: core: Add dev_get_uclass_priv() to access uclass private data
[karo-tx-uboot.git] / common / cmd_sf.c
index 5c788e96bdb821de3b7cd6f4f6cb8a40a0238cc4..20f14d3fc457b2d405dd79f57cd1a37ae12a44d3 100644 (file)
@@ -130,7 +130,7 @@ static int do_spi_flash_probe(int argc, char * const argv[])
                return 1;
        }
 
-       flash = new->uclass_priv;
+       flash = dev_get_uclass_priv(new);
 #else
        new = spi_flash_probe(bus, cs, speed, mode);
        if (!new) {