From: varkabhadram@gmail.com
Date: Tue, 22 Jul 2014 12:50:21 +0530
quoted hunk ↗ jump to hunk
@@ -1887,11 +1887,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
resource_size_t pciaddr;
unsigned int addr_len, i, pci_using_dac;
-#ifndef MODULE
- static int version_printed;
- if (version_printed++ == 0)
- pr_info("%s", version);
-#endif
+ pr_info("%s", version);
Now you're changing behavior undesirably, it will now print the
version string into the logs for every instance of the device which is
discovered.
Seriously, the driver is worse off after these "cleanups".