From: Jacob Keller Date: Fri, 16 May 2014 05:12:27 +0000 (+0000) Subject: ixgbe: extract PTP clock device from ptp_init X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~136^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63328ada9ec778315ea6dd91d82014288a7e3d43;p=pandora-kernel.git ixgbe: extract PTP clock device from ptp_init In order to properly handle a suspend/resume cycle, we cannot destroy the PTP clock device. As part of this, we should only re-create the device on first initialization. After a resume, when ixgbe_ptp_init is called, we won't create a new clock, and we will use the old clock device. To that end, this patch extracts the clock creation out of ptp_init, and only calls it if we don't already have a ptp_clock pointer. Signed-off-by: Jacob Keller Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed