Commit f364acc5 authored by Russell King's avatar Russell King

[PCMCIA] Fix bogus align value

0 is not a valid alignment value for allocate_resource()
parent 6982faf1
...@@ -653,8 +653,8 @@ struct resource *find_io_region(unsigned long base, int num, ...@@ -653,8 +653,8 @@ struct resource *find_io_region(unsigned long base, int num,
min, 0, pcmcia_align, &data); min, 0, pcmcia_align, &data);
} else } else
#endif #endif
ret = allocate_resource(&ioport_resource, res, num, min, ~0UL, 0, ret = allocate_resource(&ioport_resource, res, num, min, ~0UL,
pcmcia_align, &data); 1, pcmcia_align, &data);
up(&rsrc_sem); up(&rsrc_sem);
if (ret != 0) { if (ret != 0) {
...@@ -696,7 +696,7 @@ struct resource *find_mem_region(u_long base, u_long num, u_long align, ...@@ -696,7 +696,7 @@ struct resource *find_mem_region(u_long base, u_long num, u_long align,
} else } else
#endif #endif
ret = allocate_resource(&iomem_resource, res, num, min, ret = allocate_resource(&iomem_resource, res, num, min,
max, 0, pcmcia_align, &data); max, 1, pcmcia_align, &data);
up(&rsrc_sem); up(&rsrc_sem);
if (ret == 0 || low) if (ret == 0 || low)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment