summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLokanathan, Raaj <raaj.lokanathan@intel.com>2023-03-01 16:04:04 +0800
committerraajloka <89235354+raajloka@users.noreply.github.com>2023-03-01 19:28:22 +0800
commitf2d791e2153af5902d0951c08e7d5672fb68a0c9 (patch)
tree75cdeca5a91bdb352adb584f7b588343e7708ed5
parent21316c2806a3a727e4019265f51b648fdd520b04 (diff)
downloadu-boot-socfpga-f2d791e2153af5902d0951c08e7d5672fb68a0c9.tar.gz
HSD #14016045851: misc: socfpga_secreg: Fix compilation warningrel_socfpga_v2022.10_23.03.02_pr
The new code implementation causes some compilation warning which is related to warning: cast to pointer from integer of different size. This is the fix which fixes the warning message during the compilation. Signed-off-by: Lokanathan, Raaj <raaj.lokanathan@intel.com>
-rw-r--r--drivers/misc/socfpga_secreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/socfpga_secreg.c b/drivers/misc/socfpga_secreg.c
index 48ff80fd26..930a8273ac 100644
--- a/drivers/misc/socfpga_secreg.c
+++ b/drivers/misc/socfpga_secreg.c
@@ -88,7 +88,7 @@ static int socfpga_secreg_probe(struct udevice *dev)
reg = base + offset;
/* Clears and sets specific bits in the register */
- clrsetbits_le32(reg, mask, set_mask);
+ clrsetbits_le32((uintptr_t)reg, mask, set_mask);
}
}