* [PATCH] watchdog: fix iTCO section warning
@ 2007-10-29 18:19 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2007-10-29 18:19 UTC (permalink / raw)
To: lkml; +Cc: wim, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Make iTCO_wdt_probe() be __devinit.
Fixes these section warnings:
WARNING: vmlinux.o(.text+0x17d8a8): Section mismatch: reference to .init.data: (between 'iTCO_wdt_probe' and 'supermicro_new_unlock_watchdog')
WARNING: vmlinux.o(.text+0x17d97e): Section mismatch: reference to .init.data: (between 'iTCO_wdt_probe' and 'supermicro_new_unlock_watchdog')
WARNING: vmlinux.o(.text+0x17d989): Section mismatch: reference to .init.data:iTCO_chipset_info (between 'iTCO_wdt_probe' and 'supermicro_new_unlock_watchdog')
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/watchdog/iTCO_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.24-rc1-git4.orig/drivers/watchdog/iTCO_wdt.c
+++ linux-2.6.24-rc1-git4/drivers/watchdog/iTCO_wdt.c
@@ -709,7 +709,7 @@ static void iTCO_wdt_cleanup(void)
iTCO_wdt_private.ACPIBASE = 0;
}
-static int iTCO_wdt_probe(struct platform_device *dev)
+static int __devinit iTCO_wdt_probe(struct platform_device *dev)
{
int found = 0;
struct pci_dev *pdev = NULL;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-29 22:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 18:19 [PATCH] watchdog: fix iTCO section warning Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox