diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-14 11:10:53 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-16 17:25:29 -0500 |
commit | a61c2332f8e1939cd4984b63cab641b2366eb428 (patch) | |
tree | 00588593f5cff6da2386e897be6b701fc789e916 /arch/arm/mach-sa1100/assabet.c | |
parent | 716a3dc20084da9b3ab17bd125005a5345e23e3b (diff) |
ARM: sa11x0: assabet: fix build warning
Since a32618d2 (ARM: pgtable: switch to use pgtable-nopud.h), assabet
warns as follows:
arch/arm/mach-sa1100/assabet.c: In function 'map_sa1100_gpio_regs':
arch/arm/mach-sa1100/assabet.c:264: warning: passing argument 1 of 'pmd_offset' from incompatible pointer type
Fix this by adding the necessary pud_offset() macro.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/assabet.c')
-rw-r--r-- | arch/arm/mach-sa1100/assabet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-sa1100/assabet.c b/arch/arm/mach-sa1100/assabet.c index 6b93e200bcac..0c4b76ab4d8e 100644 --- a/arch/arm/mach-sa1100/assabet.c +++ b/arch/arm/mach-sa1100/assabet.c | |||
@@ -268,7 +268,7 @@ static void __init map_sa1100_gpio_regs( void ) | |||
268 | int prot = PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_DOMAIN(DOMAIN_IO); | 268 | int prot = PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_DOMAIN(DOMAIN_IO); |
269 | pmd_t *pmd; | 269 | pmd_t *pmd; |
270 | 270 | ||
271 | pmd = pmd_offset(pgd_offset_k(virt), virt); | 271 | pmd = pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt); |
272 | *pmd = __pmd(phys | prot); | 272 | *pmd = __pmd(phys | prot); |
273 | flush_pmd_entry(pmd); | 273 | flush_pmd_entry(pmd); |
274 | } | 274 | } |