mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
video: tegra: Incorrect operator used
Combining two bits into a mask requires the use of the binary 'or' operator not the logical one. Correct it. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Thierry Reding <treding@nvidia.com> Acked-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
parent
f77584b53a
commit
1530cfe09a
@ -336,7 +336,7 @@ static int tegra_dc_sor_io_set_dpd(struct tegra_dc_sor_data *sor, int up)
|
||||
}
|
||||
|
||||
reg_val = readl(pmc_base + APBDEV_PMC_IO_DPD2_REQ);
|
||||
reg_val &= ~(APBDEV_PMC_IO_DPD2_REQ_LVDS_ON ||
|
||||
reg_val &= ~(APBDEV_PMC_IO_DPD2_REQ_LVDS_ON |
|
||||
APBDEV_PMC_IO_DPD2_REQ_CODE_DEFAULT_MASK);
|
||||
|
||||
reg_val = up ? APBDEV_PMC_IO_DPD2_REQ_LVDS_ON |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user