diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-10-16 18:32:39 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-12-12 22:07:04 +0000 |
commit | c1dbdea98d9b32090d5d3e575d60464eb68616d1 (patch) | |
tree | 6f5ebdff99d5152ea999e44d5f1c57b54147e112 /drivers/net/ethernet/sfc | |
parent | 8349f7f610263a2b469feb0eb07583ad0742e7ba (diff) | |
download | op-kernel-dev-c1dbdea98d9b32090d5d3e575d60464eb68616d1.zip op-kernel-dev-c1dbdea98d9b32090d5d3e575d60464eb68616d1.tar.gz |
sfc: Do not use MAC address as clock name
We'll be sharing clocks between multiple functions with their own MAC
addresses. The name field is now documented as 'A short "friendly
name" to identify the clock ...' and '... not meant to be a unique
id.' So use the name 'sfc'.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r-- | drivers/net/ethernet/sfc/ptp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c index aa4876e..5b43459 100644 --- a/drivers/net/ethernet/sfc/ptp.c +++ b/drivers/net/ethernet/sfc/ptp.c @@ -965,9 +965,8 @@ int efx_ptp_probe(struct efx_nic *efx, struct efx_channel *channel) ptp->evt_overflow = false; ptp->phc_clock_info.owner = THIS_MODULE; - snprintf(ptp->phc_clock_info.name, - sizeof(ptp->phc_clock_info.name), - "%pm", efx->net_dev->perm_addr); + strlcpy(ptp->phc_clock_info.name, "sfc", + sizeof(ptp->phc_clock_info.name)); ptp->phc_clock_info.max_adj = MAX_PPB; ptp->phc_clock_info.n_alarm = 0; ptp->phc_clock_info.n_ext_ts = 0; |