hwmon: (adt7475) Fix temperature fault flags
[safe/jmp/linux-2.6] / drivers / firmware / iscsi_ibft_find.c
index d0e5fa4..dfb15c0 100644 (file)
@@ -58,17 +58,17 @@ void __init reserve_ibft_region(void)
        unsigned int len = 0;
        void *virt;
 
-       ibft_addr = 0;
+       ibft_addr = NULL;
 
        for (pos = IBFT_START; pos < IBFT_END; pos += 16) {
                /* The table can't be inside the VGA BIOS reserved space,
                 * so skip that area */
                if (pos == VGA_MEM)
                        pos += VGA_SIZE;
-               virt = phys_to_virt(pos);
+               virt = isa_bus_to_virt(pos);
                if (memcmp(virt, IBFT_SIGN, IBFT_SIGN_LEN) == 0) {
                        unsigned long *addr =
-                           (unsigned long *)phys_to_virt(pos + 4);
+                           (unsigned long *)isa_bus_to_virt(pos + 4);
                        len = *addr;
                        /* if the length of the table extends past 1M,
                         * the table cannot be valid. */
@@ -81,4 +81,3 @@ void __init reserve_ibft_region(void)
        if (ibft_addr)
                reserve_bootmem(pos, PAGE_ALIGN(len), BOOTMEM_DEFAULT);
 }
-EXPORT_SYMBOL_GPL(reserve_ibft_region);