]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - drivers/core/device-remove.c
Merge tag 'dm-pull-5jan21' of git://git.denx.de/u-boot-dm into next
[thirdparty/u-boot.git] / drivers / core / device-remove.c
index 44eaa67d56674527275ac2c8767dcce42fe7f2d8..7e8f3afb2d60db1c126586552a1236c0ba583562 100644 (file)
@@ -152,7 +152,7 @@ void device_free(struct udevice *dev)
 static bool flags_remove(uint flags, uint drv_flags)
 {
        if ((flags & DM_REMOVE_NORMAL) ||
-           (flags & (drv_flags & (DM_FLAG_ACTIVE_DMA | DM_FLAG_OS_PREPARE))))
+           (flags && (drv_flags & (DM_FLAG_ACTIVE_DMA | DM_FLAG_OS_PREPARE))))
                return true;
 
        return false;