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
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
arch
/
arm
/
mach-iop3xx
/
iq31244-pci.c
diff --git
a/arch/arm/mach-iop3xx/iq31244-pci.c
b/arch/arm/mach-iop3xx/iq31244-pci.c
index
f3c6413
..
c6a973b
100644
(file)
--- a/
arch/arm/mach-iop3xx/iq31244-pci.c
+++ b/
arch/arm/mach-iop3xx/iq31244-pci.c
@@
-74,10
+74,12
@@
static int iq31244_setup(int nr, struct pci_sys_data *sys)
if(nr != 0)
return 0;
if(nr != 0)
return 0;
- res = k
z
alloc(sizeof(struct resource) * 2, GFP_KERNEL);
+ res = k
m
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 = IOP321_PCI_LOWER_IO_VA;
res[0].end = IOP321_PCI_UPPER_IO_VA;
res[0].name = "IQ31244 PCI I/O Space";
res[0].start = IOP321_PCI_LOWER_IO_VA;
res[0].end = IOP321_PCI_UPPER_IO_VA;
res[0].name = "IQ31244 PCI I/O Space";