igb: Tidy up wrapping for CONFIG_IGB_PTP.
authorMatthew Vick <matthew.vick@intel.com>
Fri, 10 Aug 2012 05:40:43 +0000 (05:40 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 17 Sep 2012 09:04:05 +0000 (02:04 -0700)
commit3c89f6d0d4aa92ff252c17f8f6b5c8983ae2b77e
treebad0f3f664d52709fd942e81296bf5ed565f494a
parentba01dfe18241bf89b058fd8a60218b218ad2bb30
igb: Tidy up wrapping for CONFIG_IGB_PTP.

For users without CONFIG_IGB_PTP=y, we should not be compiling any PTP
code into the driver. Tidy up the wrapping in igb to support this.

Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_ethtool.c
drivers/net/ethernet/intel/igb/igb_main.c