From: Andrew Morton drivers/net/3c509.c:1478: warning: `el3_suspend' defined but not used drivers/net/3c509.c:1502: warning: `el3_resume' defined but not used Cc: Pekka Enberg Signed-off-by: Andrew Morton --- drivers/net/3c509.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff -puN drivers/net/3c509.c~3c509-use-proper-suspend-resume-api-fix drivers/net/3c509.c --- devel/drivers/net/3c509.c~3c509-use-proper-suspend-resume-api-fix 2006-02-15 02:25:40.000000000 -0800 +++ devel-akpm/drivers/net/3c509.c 2006-02-15 02:29:58.000000000 -0800 @@ -100,6 +100,10 @@ static int max_interrupt_work = 10; static char versionA[] __initdata = DRV_NAME ".c:" DRV_VERSION " " DRV_RELDATE " becker@scyld.com\n"; static char versionB[] __initdata = "http://www.scyld.com/network/3c509.html\n"; +#if defined(CONFIG_PM) && (defined(CONFIG_MCA) || defined(CONFIG_EISA)) +#define EL3_SUSPEND +#endif + #ifdef EL3_DEBUG static int el3_debug = EL3_DEBUG; #else @@ -198,7 +202,7 @@ static void el3_tx_timeout (struct net_d static void el3_down(struct net_device *dev); static void el3_up(struct net_device *dev); static struct ethtool_ops ethtool_ops; -#ifdef CONFIG_PM +#ifdef EL3_SUSPEND static int el3_suspend(struct device *, pm_message_t); static int el3_resume(struct device *); #else @@ -1471,7 +1475,7 @@ el3_up(struct net_device *dev) } /* Power Management support functions */ -#ifdef CONFIG_PM +#ifdef EL3_SUSPEND static int el3_suspend(struct device *pdev, pm_message_t state) @@ -1521,7 +1525,7 @@ el3_resume(struct device *pdev) return 0; } -#endif /* CONFIG_PM */ +#endif /* EL3_SUSPEND */ /* Parameters that may be passed into the module. */ static int debug = -1; _