- while (window->size) {
- /*
- * Try to reserve the window mem region. If this fails then
- * it is likely due to a fragment of the window being
- * "reseved" by the BIOS. In the case that the
- * request_mem_region() fails then once the rom size is
- * discovered we will try to reserve the unreserved fragment.
- */
- info->window_rsrc.name = MOD_NAME;
- info->window_rsrc.start = window->start;
- info->window_rsrc.end = window->start + window->size - 1;
- info->window_rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
- if (request_resource(&iomem_resource, &info->window_rsrc)) {
- info->window_rsrc.parent = NULL;
- printk(KERN_ERR MOD_NAME
- " %s(): Unable to register resource"
- " 0x%.08lx-0x%.08lx - kernel bug?\n",
- __func__,
- info->window_rsrc.start, info->window_rsrc.end);
+ /* disabled because it fights with BIOS reserved regions */
+#define REQUEST_MEM_REGION 0
+#if REQUEST_MEM_REGION
+ while(window->size) {
+ if (request_mem_region(window->start, window->size, "amd76xrom")) {
+ break;