summaryrefslogtreecommitdiffstats
path: root/drivers/net/epic100.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-03-27 23:54:12 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-03-27 23:54:12 +0000
commitd3e71cb08747743fce908122bab08b479eb403a5 (patch)
treecbec6948fdbdee9af81cf3ecfb504070d2745d7b /drivers/net/epic100.c
parentfe7ff1706e323d0e5ed83972960a1ecc1ee538b3 (diff)
Merge with Linux 2.3.99-pre3.
Diffstat (limited to 'drivers/net/epic100.c')
-rw-r--r--drivers/net/epic100.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c
index f855d1978..2832775ae 100644
--- a/drivers/net/epic100.c
+++ b/drivers/net/epic100.c
@@ -1099,6 +1099,12 @@ static int __devinit epic100_init_one (struct pci_dev *pdev,
struct net_device *dev;
long ioaddr;
static int card_idx = -1;
+ static int printed_version = 0;
+
+ if (!printed_version) {
+ printk (KERN_INFO "%s", version);
+ printed_version = 1;
+ }
chip_idx = ent->driver_data;
@@ -1280,13 +1286,7 @@ static struct pci_driver epic100_driver = {
static int __init epic100_init (void)
{
- printk (KERN_INFO "%s", version);
-
- if (pci_register_driver (&epic100_driver) > 0)
- return 0;
-
- pci_unregister_driver (&epic100_driver);
- return -ENODEV;
+ return pci_module_init (&epic100_driver);
}