diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_pci.c')
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 65d2ed4549e6..6455c1eada1a 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/string.h> | 23 | #include <linux/string.h> |
24 | #include <linux/init.h> | 24 | #include <linux/init.h> |
25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
26 | #include <linux/bootmem.h> | ||
27 | #include <linux/memblock.h> | 26 | #include <linux/memblock.h> |
28 | #include <linux/log2.h> | 27 | #include <linux/log2.h> |
29 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
@@ -152,7 +151,7 @@ static int setup_one_atmu(struct ccsr_pci __iomem *pci, | |||
152 | flags |= 0x10000000; /* enable relaxed ordering */ | 151 | flags |= 0x10000000; /* enable relaxed ordering */ |
153 | 152 | ||
154 | for (i = 0; size > 0; i++) { | 153 | for (i = 0; size > 0; i++) { |
155 | unsigned int bits = min(ilog2(size), | 154 | unsigned int bits = min_t(u32, ilog2(size), |
156 | __ffs(pci_addr | phys_addr)); | 155 | __ffs(pci_addr | phys_addr)); |
157 | 156 | ||
158 | if (index + i >= 5) | 157 | if (index + i >= 5) |