watchdog: fix nv_tco section mismatch
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 24 Mar 2011 20:32:44 +0000 (13:32 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 29 Mar 2011 11:06:04 +0000 (11:06 +0000)
Fix section mismatch warning:
Mark the called nv_tco_getdevice() as __devinit, just like its caller.

WARNING: drivers/watchdog/nv_tco.o(.devinit.text+0x16): Section mismatch in reference from the function nv_tco_init() to the function .init.text:nv_tco_getdevice()
The function __devinit nv_tco_init() references
a function __init nv_tco_getdevice().
If nv_tco_getdevice is only used by nv_tco_init then
annotate nv_tco_getdevice with a matching annotation.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/nv_tco.c

index 267377a5a83ebf9311995541c92bc2adf5740086..afa78a54711e1f51097eb9425ebe3f4b8fa0b72a 100644 (file)
@@ -302,7 +302,7 @@ MODULE_DEVICE_TABLE(pci, tco_pci_tbl);
  *     Init & exit routines
  */
 
-static unsigned char __init nv_tco_getdevice(void)
+static unsigned char __devinit nv_tco_getdevice(void)
 {
        struct pci_dev *dev = NULL;
        u32 val;
This page took 0.025059 seconds and 5 git commands to generate.