]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Fix incorrect flag check
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 15 Nov 2020 20:22:53 +0000 (21:22 +0100)
committerSimon Glass <sjg@chromium.org>
Mon, 30 Nov 2020 20:14:43 +0000 (13:14 -0700)
commite7e7e1093b5243b058c420eaebf9373cf2d3f270
treee4a17626c802d7a7d527c58b1824cbfe30c14538
parent87d07ccc237a5bfd8be119af46140a4467122ca7
dm: core: Fix incorrect flag check

The test should be checking whether $flags are non-zero and $drv_flags
contain specific flags, however these two sets of flags are separate,
and the two tests should be logically ANDed, not bitwise ANDed.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device-remove.c