staging: tidspbridge: add pud code
authorOmar Ramirez Luna <omar.ramirez@copitl.com>
Fri, 29 Jun 2012 18:49:17 +0000 (13:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 23:17:01 +0000 (16:17 -0700)
commita454ad15e015526ca84f15460bf8a56fccfffeea
tree44aa1f9318f39c33f29635cddc61b273af8e7cf5
parent0e7e10fe49213ba4e9dc8a74615b81dd8a57ba2a
staging: tidspbridge: add pud code

And fix the following warning for passing an incorrect
variable type.

../tiomap3430.c: In function 'user_va2_pa':
../tiomap3430.c:1555:
    warning: passing argument 1 of 'pmd_offset' from
    incompatible pointer type
arch/arm/include/asm/pgtable-2level.h:156:
    note: expected 'struct pud_t *' but argument is of
    type 'pmdval_t (*)[2]'

While at it, eliminate 'if' nesting to increase readability.

Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/core/tiomap3430.c