diff options
Diffstat (limited to 'common/cmd_sf.c')
-rw-r--r-- | common/cmd_sf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 5c788e96bd..20f14d3fc4 100644 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c @@ -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) { |