diff options
author | Andy Fleming <afleming@freescale.com> | 2008-07-07 14:24:39 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 00:39:28 +0200 |
commit | 98874ff329d4a5b32c467b43f6e966e1aa68479f (patch) | |
tree | 18bbde0bbeead87f55171c259c05c91ace1ee192 /lib_generic/lmb.c | |
parent | da8693a91b8eef75ade8de50a1b2ce035bc5fb54 (diff) | |
download | u-boot-imx-98874ff329d4a5b32c467b43f6e966e1aa68479f.zip u-boot-imx-98874ff329d4a5b32c467b43f6e966e1aa68479f.tar.gz u-boot-imx-98874ff329d4a5b32c467b43f6e966e1aa68479f.tar.bz2 |
Fix LMB type issues
The LMB code now uses phys_addr_t and phys_size_t. Also, there were a couple
of casting problems in the bootm code that called the LMB functions.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'lib_generic/lmb.c')
-rw-r--r-- | lib_generic/lmb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib_generic/lmb.c b/lib_generic/lmb.c index 93264c1..6b46fa8 100644 --- a/lib_generic/lmb.c +++ b/lib_generic/lmb.c @@ -181,11 +181,11 @@ long lmb_add(struct lmb *lmb, phys_addr_t base, phys_size_t size) return lmb_add_region(_rgn, base, size); } -long lmb_free(struct lmb *lmb, u64 base, u64 size) +long lmb_free(struct lmb *lmb, phys_addr_t base, phys_size_t size) { struct lmb_region *rgn = &(lmb->reserved); - u64 rgnbegin, rgnend; - u64 end = base + size; + phys_addr_t rgnbegin, rgnend; + phys_addr_t end = base + size; int i; rgnbegin = rgnend = 0; /* supress gcc warnings */ |