]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Add switch case for supported hardware to igb_ptp_remove.
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 16 May 2012 01:46:00 +0000 (01:46 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 20 Jun 2012 08:14:34 +0000 (01:14 -0700)
commit4f4236909e3ab4c7373e85c96fdd12e4e6ba0b23
treecf592a3c156bc12eb10f77a22b05ca54ce348fb6
parent833504a3fcf9298998e081b1d25d1bd308de72b7
igb: Add switch case for supported hardware to igb_ptp_remove.

PTP initialization is only done on supported parts, so remove needs
same checks or it will cause crashes on systems with igb devices that
don't support PTP.  This patch adds those checks to the exit function.

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@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_ptp.c