liquidio: moved ptp_enable to octeon_device structure
authorIntiyaz Basha <intiyaz.basha@cavium.com>
Fri, 11 Aug 2017 18:22:09 +0000 (11:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 22:02:51 +0000 (15:02 -0700)
commitaa69ff9e9c32db8aa84835baffea1b70c39e5112
tree27d71657af44bba47e683e96cf54dd58a666d925
parent047dbb27ff470782c4bd3d574942e571e747463f
liquidio: moved ptp_enable to octeon_device structure

ptp_enable was a global static variable.  Moved this global variable to
octeon_device structure and removed extra device id check.

Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/octeon_device.h