Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: can: ctucanfd: remove useless copy of PCI_DEVICE_DATA macro

The ctucanfd driver has its own copy of the PCI_DEVICE_DATA macro. I
assume this was done to support older kernel versions where it didn't
exist, but that is irrelevant once the driver is in the mainline
kernel. Remove it.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260130114134.47421-1-enelsonmoore@gmail.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Ethan Nelson-Moore and committed by
Marc Kleine-Budde
1e41cbbe f1359c24

-8
-8
drivers/net/can/ctucanfd/ctucanfd_pci.c
··· 22 22 23 23 #include "ctucanfd.h" 24 24 25 - #ifndef PCI_DEVICE_DATA 26 - #define PCI_DEVICE_DATA(vend, dev, data) \ 27 - .vendor = PCI_VENDOR_ID_##vend, \ 28 - .device = PCI_DEVICE_ID_##vend##_##dev, \ 29 - .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0, \ 30 - .driver_data = (kernel_ulong_t)(data) 31 - #endif 32 - 33 25 #ifndef PCI_VENDOR_ID_TEDIA 34 26 #define PCI_VENDOR_ID_TEDIA 0x1760 35 27 #endif