This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / pci / hotplug / cpqphp_core.c
index 24e0699..13d1479 100644 (file)
@@ -55,9 +55,9 @@ struct controller *cpqhp_ctrl_list;   /* = NULL */
 struct pci_func *cpqhp_slot_list[256];
 
 /* local variables */
-static void __iomem *smbios_table;
-static void __iomem *smbios_start;
-static void __iomem *cpqhp_rom_start;
+static void *smbios_table;
+static void *smbios_start;
+static void *cpqhp_rom_start;
 static int power_mode;
 static int debug;
 
@@ -123,10 +123,10 @@ static inline int is_slot66mhz(struct slot *slot)
  * Returns pointer to the head of the SMBIOS tables (or NULL)
  *
  */
-static void __iomem * detect_SMBIOS_pointer(void __iomem *begin, void __iomem *end)
+static void * detect_SMBIOS_pointer(void *begin, void *end)
 {
-       void __iomem *fp;
-       void __iomem *endp;
+       void *fp;
+       void *endp;
        u8 temp1, temp2, temp3, temp4;
        int status = 0;
 
@@ -232,14 +232,13 @@ static int pci_print_IRQ_route (void)
  *
  * returns a pointer to an SMBIOS structure or NULL if none found
  */
-static void __iomem *get_subsequent_smbios_entry(void __iomem *smbios_start,
-                                               void __iomem *smbios_table,
-                                               void __iomem *curr)
+static void *get_subsequent_smbios_entry(void *smbios_start,
+                       void *smbios_table, void *curr)
 {
        u8 bail = 0;
        u8 previous_byte = 1;
-       void __iomem *p_temp;
-       void __iomem *p_max;
+       void *p_temp;
+       void *p_max;
 
        if (!smbios_table || !curr)
                return(NULL);
@@ -283,10 +282,8 @@ static void __iomem *get_subsequent_smbios_entry(void __iomem *smbios_start,
  *
  * returns a pointer to an SMBIOS structure or %NULL if none found
  */
-static void __iomem *get_SMBIOS_entry(void __iomem *smbios_start,
-                                       void __iomem *smbios_table,
-                                       u8 type,
-                                       void __iomem *previous)
+static void *get_SMBIOS_entry(void *smbios_start, void *smbios_table, u8 type,
+                       void * previous)
 {
        if (!smbios_table)
                return NULL;
@@ -322,9 +319,8 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
        kfree(slot);
 }
 
-static int ctrl_slot_setup(struct controller *ctrl,
-                       void __iomem *smbios_start,
-                       void __iomem *smbios_table)
+static int ctrl_slot_setup(struct controller * ctrl, void *smbios_start,
+                       void *smbios_table)
 {
        struct slot *new_slot;
        u8 number_of_slots;
@@ -332,7 +328,7 @@ static int ctrl_slot_setup(struct controller *ctrl,
        u8 slot_number;
        u8 ctrl_slot;
        u32 tempdword;
-       void __iomem *slot_entry= NULL;
+       void *slot_entry= NULL;
        int result = -ENOMEM;
 
        dbg("%s\n", __FUNCTION__);
@@ -1487,8 +1483,8 @@ static int __init cpqhpc_init(void)
        cpqhp_debug = debug;
 
        info (DRIVER_DESC " version: " DRIVER_VERSION "\n");
-       result = pci_register_driver(&cpqhpc_driver);
-       dbg("pci_register_driver = %d\n", result);
+       result = pci_module_init(&cpqhpc_driver);
+       dbg("pci_module_init = %d\n", result);
        return result;
 }