summaryrefslogtreecommitdiff
path: root/drivers/memory/emif.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-07-24 10:40:21 +0300
committerKrzysztof Kozlowski <krzk@kernel.org>2020-07-24 17:18:32 +0300
commitec6652bda5c5fbf37d9245e980761a4d2dbd6fec (patch)
tree1709ceb6464b1c2cf4e4c310be673c950d41d074 /drivers/memory/emif.c
parenta53f7f08c07f7900e7388eaff9a83a858dcc9c79 (diff)
downloadlinux-ec6652bda5c5fbf37d9245e980761a4d2dbd6fec.tar.xz
memory: emif: Put constant in comparison on the right side
Fixes checkpatch warning: WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/memory/emif.c')
-rw-r--r--drivers/memory/emif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c
index 9d9127bf2a59..fb2bb15053a7 100644
--- a/drivers/memory/emif.c
+++ b/drivers/memory/emif.c
@@ -282,7 +282,7 @@ static void set_lpmode(struct emif_data *emif, u8 lpmode)
* the EMIF_PWR_MGMT_CTRL[10:8] REG_LP_MODE bit field to 0x4.
*/
if ((emif->plat_data->ip_rev == EMIF_4D) &&
- (EMIF_LP_MODE_PWR_DN == lpmode)) {
+ (lpmode == EMIF_LP_MODE_PWR_DN)) {
WARN_ONCE(1,
"REG_LP_MODE = LP_MODE_PWR_DN(4) is prohibited by"
"erratum i743 switch to LP_MODE_SELF_REFRESH(2)\n");