diff options
-rw-r--r-- | arch/powerpc/sysdev/fsl_lbc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/fsl_lbc.c b/arch/powerpc/sysdev/fsl_lbc.c index 300be2d06a26..6bc5a546d49f 100644 --- a/arch/powerpc/sysdev/fsl_lbc.c +++ b/arch/powerpc/sysdev/fsl_lbc.c | |||
@@ -74,8 +74,8 @@ int fsl_lbc_find(phys_addr_t addr_base) | |||
74 | 74 | ||
75 | lbc = fsl_lbc_ctrl_dev->regs; | 75 | lbc = fsl_lbc_ctrl_dev->regs; |
76 | for (i = 0; i < ARRAY_SIZE(lbc->bank); i++) { | 76 | for (i = 0; i < ARRAY_SIZE(lbc->bank); i++) { |
77 | __be32 br = in_be32(&lbc->bank[i].br); | 77 | u32 br = in_be32(&lbc->bank[i].br); |
78 | __be32 or = in_be32(&lbc->bank[i].or); | 78 | u32 or = in_be32(&lbc->bank[i].or); |
79 | 79 | ||
80 | if (br & BR_V && (br & or & BR_BA) == fsl_lbc_addr(addr_base)) | 80 | if (br & BR_V && (br & or & BR_BA) == fsl_lbc_addr(addr_base)) |
81 | return i; | 81 | return i; |
@@ -97,7 +97,7 @@ EXPORT_SYMBOL(fsl_lbc_find); | |||
97 | int fsl_upm_find(phys_addr_t addr_base, struct fsl_upm *upm) | 97 | int fsl_upm_find(phys_addr_t addr_base, struct fsl_upm *upm) |
98 | { | 98 | { |
99 | int bank; | 99 | int bank; |
100 | __be32 br; | 100 | u32 br; |
101 | struct fsl_lbc_regs __iomem *lbc; | 101 | struct fsl_lbc_regs __iomem *lbc; |
102 | 102 | ||
103 | bank = fsl_lbc_find(addr_base); | 103 | bank = fsl_lbc_find(addr_base); |