* [patch-kj] remove old ifdefs net/eepro100.c
@ 2004-07-23 15:43 maks attems
2004-07-27 18:00 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: maks attems @ 2004-07-23 15:43 UTC (permalink / raw)
To: saw, jgarzik; +Cc: netdev
Patches to remove some old ifdefs, 2.2 comptability.
then remove unused #include <linux/version.h>
applies cleanly to 2.6.8-rc2
From: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
---
linux-2.6.7-bk20-max/drivers/net/eepro100.c | 17 -----------------
1 files changed, 17 deletions(-)
diff -puN drivers/net/eepro100.c~remove-old-ifdefs-eepro100 drivers/net/eepro100.c
--- linux-2.6.7-bk20/drivers/net/eepro100.c~remove-old-ifdefs-eepro100 2004-07-11 14:42:27.000000000 +0200
+++ linux-2.6.7-bk20-max/drivers/net/eepro100.c 2004-07-11 14:42:27.000000000 +0200
@@ -88,7 +88,6 @@ static int options[] = {-1, -1, -1, -1,
#define PKT_BUF_SZ 1536
#include <linux/config.h>
-#include <linux/version.h>
#include <linux/module.h>
#include <linux/kernel.h>
@@ -2447,22 +2446,6 @@ static struct pci_driver eepro100_driver
#endif /* CONFIG_PM */
};
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,48)
-static int pci_module_init(struct pci_driver *pdev)
-{
- int rc;
-
- rc = pci_register_driver(pdev);
- if (rc <= 0) {
- printk(KERN_INFO "%s: No cards found, driver not installed.\n",
- pdev->name);
- pci_unregister_driver(pdev);
- return -ENODEV;
- }
- return 0;
-}
-#endif
-
static int __init eepro100_init_module(void)
{
#ifdef MODULE
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-27 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-23 15:43 [patch-kj] remove old ifdefs net/eepro100.c maks attems
2004-07-27 18:00 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).