[PATCH]: Fix __init declarations in Compaq SMART2 Controller driver

From: Prarit Bhargava
Date: Wed Feb 28 2007 - 14:24:27 EST


Fix __init declarations in Compaq SMART2 Controller driver.

Resolves MODPOST warnings similar to:

WARNING: drivers/block/cpqarray.o - Section mismatch: reference to
.init.text:cpqarray_init_one from .data.rel.local between 'cpqarray_pci_driver'
(at offset 0x20) and 'smart1_access'

Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>

--- linux-2.6.18.ia64.orig/drivers/block/cpqarray.c 2007-02-14 11:36:20.000000000 -0500
+++ linux-2.6.18.ia64/drivers/block/cpqarray.c 2007-02-14 13:08:57.000000000 -0500
@@ -212,7 +212,7 @@ static struct proc_dir_entry *proc_array
* Get us a file in /proc/array that says something about each controller.
* Create /proc/array if it doesn't exist yet.
*/
-static void __init ida_procinit(int i)
+static void __devinit ida_procinit(int i)
{
if (proc_array == NULL) {
proc_array = proc_mkdir("cpqarray", proc_root_driver);
@@ -390,7 +390,7 @@ static void __devexit cpqarray_remove_on
}

/* pdev is NULL for eisa */
-static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev)
+static int __devinit cpqarray_register_ctlr( int i, struct pci_dev *pdev)
{
request_queue_t *q;
int j;
@@ -511,7 +511,7 @@ Enomem4:
return -1;
}

-static int __init cpqarray_init_one( struct pci_dev *pdev,
+static int __devinit cpqarray_init_one( struct pci_dev *pdev,
const struct pci_device_id *ent)
{
int i;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/