git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
arch
/
arm
/
mach-iop3xx
/
iq80332-pci.c
diff --git
a/arch/arm/mach-iop3xx/iq80332-pci.c
b/arch/arm/mach-iop3xx/iq80332-pci.c
index
b9807aa
..
afc0676
100644
(file)
--- a/
arch/arm/mach-iop3xx/iq80332-pci.c
+++ b/
arch/arm/mach-iop3xx/iq80332-pci.c
@@
-13,6
+13,8
@@
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/hardware.h>
#include <asm/irq.h>
@@
-68,12
+70,10
@@
static int iq80332_setup(int nr, struct pci_sys_data *sys)
if(nr != 0)
return 0;
if(nr != 0)
return 0;
- res = k
m
alloc(sizeof(struct resource) * 2, GFP_KERNEL);
+ res = k
z
alloc(sizeof(struct resource) * 2, GFP_KERNEL);
if (!res)
panic("PCI: unable to alloc resources");
if (!res)
panic("PCI: unable to alloc resources");
- memset(res, 0, sizeof(struct resource) * 2);
-
res[0].start = IOP331_PCI_LOWER_IO_VA;
res[0].end = IOP331_PCI_UPPER_IO_VA;
res[0].name = "IQ80332 PCI I/O Space";
res[0].start = IOP331_PCI_LOWER_IO_VA;
res[0].end = IOP331_PCI_UPPER_IO_VA;
res[0].name = "IQ80332 PCI I/O Space";