net: cavium: fix driver name [Linux 4.19.72]

This Linux kernel change "net: cavium: fix driver name" is included in the Linux 4.19.72 release. This change is authored by Stephen Hemminger <stephen [at]> on Thu Aug 15 12:49:49 2019 -0700. The commit for this change in Linux stable tree is 7506e8c (patch) which is from upstream commit 3434341. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 3434341.

net: cavium: fix driver name

[ Upstream commit 3434341004a380f4e47c3a03d4320d43982162a0 ]

The driver name gets exposed in sysfs under /sys/bus/pci/drivers
so it should look like other devices. Change it to be common
format (instead of "Cavium PTP").

This is a trivial fix that was observed by accident because
Debian kernels were building this driver into kernel (bug).

Signed-off-by: Stephen Hemminger <>
Signed-off-by: David S. Miller <>
Signed-off-by: Sasha Levin <>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/net/ethernet/cavium/common/cavium_ptp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/cavium/common/cavium_ptp.c b/drivers/net/ethernet/cavium/common/cavium_ptp.c
index 6aeb104..1ab40c9 100644
--- a/drivers/net/ethernet/cavium/common/cavium_ptp.c
+++ b/drivers/net/ethernet/cavium/common/cavium_ptp.c
@@ -10,7 +10,7 @@

 #include "cavium_ptp.h"

-#define DRV_NAME   "Cavium PTP Driver"
+#define DRV_NAME "cavium_ptp"


Leave a Reply

Your email address will not be published. Required fields are marked *