Message ID | CAK7LNAT2wewT8jR4eBgMdP9tGBSw1SkRRHFr5kAS3JB4BVHmsQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | [1/3] ARM: uniphier: move NAND reset assertion to U-Boot proper from SPL | expand |
--- a/arch/arm/mach-uniphier/nand-reset.c +++ b/arch/arm/mach-uniphier/nand-reset.c @@ -28,7 +28,7 @@ void uniphier_nand_reset_assert(void) int ret; ret = uclass_find_first_device(UCLASS_MTD, &dev); - if (ret) + if (ret || !dev) return; /* make sure this is the Denali NAND controller */