struct ata_pci_init_native_mode(...) { unsigned long bmdma; ... bmdma = pci_resource_start(pdev, 4); /* Memory reference to a direct physical address. */ if (inb(bmdma + 2) & 8) ... }
Perhaps you might want to use request_region() before using inb()? Regards, Rajat -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/