Revision 38a529b5d42e4cfc5ac94844e61335a00eb2d320 authored by Mika Westerberg on 16 January 2014, 12:39:39 UTC, committed by David S. Miller on 16 January 2014, 23:36:26 UTC
Commit 7509963c703b (e1000e: Fix a compile flag mis-match for suspend/resume) moved suspend and resume hooks to be available when CONFIG_PM is set. However, it can be set even if CONFIG_PM_SLEEP is not set causing following warnings to be emitted: drivers/net/ethernet/intel/e1000e/netdev.c:6178:12: warning: ‘e1000_suspend’ defined but not used [-Wunused-function] drivers/net/ethernet/intel/e1000e/netdev.c:6185:12: warning: ‘e1000_resume’ defined but not used [-Wunused-function] To fix this make the hooks to be available only when CONFIG_PM_SLEEP is set and remove CONFIG_PM wrapping from driver ops because this is already handled by SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS(). Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Cc: Dave Ertman <davidx.m.ertman@intel.com> Cc: Aaron Brown <aaron.f.brown@intel.com> Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent aee636c
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.5 KB |
Makefile | -rw-r--r-- | 271 bytes |
af_x25.c | -rw-r--r-- | 40.4 KB |
sysctl_net_x25.c | -rw-r--r-- | 1.9 KB |
x25_dev.c | -rw-r--r-- | 4.4 KB |
x25_facilities.c | -rw-r--r-- | 9.1 KB |
x25_forward.c | -rw-r--r-- | 3.8 KB |
x25_in.c | -rw-r--r-- | 9.8 KB |
x25_link.c | -rw-r--r-- | 8.9 KB |
x25_out.c | -rw-r--r-- | 5.3 KB |
x25_proc.c | -rw-r--r-- | 5.9 KB |
x25_route.c | -rw-r--r-- | 4.8 KB |
x25_subr.c | -rw-r--r-- | 9.5 KB |
x25_timer.c | -rw-r--r-- | 3.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...