]> git.baikalelectronics.ru Git - kernel.git/commit
ne2k-pci: Fix various coding-style issues and improve printk() usage
authorArmin Wolf <W_Armin@gmx.de>
Tue, 26 May 2020 18:03:02 +0000 (20:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 06:19:28 +0000 (23:19 -0700)
commiteb1117ec9806de4a6a054c50eda2b674eab1b12d
tree4307a448a479add1ea38241f16c2022e6555511b
parentc61fd9ae5dd244f2ada87606dc0d427ec22c85a0
ne2k-pci: Fix various coding-style issues and improve printk() usage

Fixed a ton of minor checkpatch errors/warnings and remove version
printing at module init/when device is found and use MODULE_VERSION
instead. Also modifying the RTL8029 PCI string to include the compatible
RTL8029AS nic.
The only mayor issue remaining is the missing SPDX tag, but since the
exact version of the GPL is not stated anywhere inside the file, its
impossible to add such a tag at the moment.
But maybe it is possible, since 8390.h states Donald Becker's 8390
drivers are licensed under GPL 2.2 only (= GPL-2.0-only ?).
The kernel module containing this patch compiles and runs without
problems on a RTL8029AS-based NE2000 clone card with kernel 5.7.0-rc6.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ne2k-pci.c