diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 14:52:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 11:47:01 -0800 |
commit | ac4e016df4bf57cdb100170c5cc057a15a9c96bd (patch) | |
tree | 78cdfd267a495345d53c5010ec2fa6dd96d39d42 | |
parent | c2f128a1fed866dca94d52b3f0b1e40726e2352a (diff) | |
download | linux-3.10-ac4e016df4bf57cdb100170c5cc057a15a9c96bd.tar.gz linux-3.10-ac4e016df4bf57cdb100170c5cc057a15a9c96bd.tar.bz2 linux-3.10-ac4e016df4bf57cdb100170c5cc057a15a9c96bd.zip |
NET: pc300, show version info from module init
Again, no need to do that from the pci probe function.
Hmm, I noticed this driver is marked as BROKEN. Won't touch it more,
it has to be converted to dynamic tty driver allocation first.
Perhaps it is time to move it to staging?
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: netdev@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/net/wan/pc300_drv.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wan/pc300_drv.c b/drivers/net/wan/pc300_drv.c index a6dd00de41a..cb0f8d932b0 100644 --- a/drivers/net/wan/pc300_drv.c +++ b/drivers/net/wan/pc300_drv.c @@ -3231,7 +3231,7 @@ static void plx_init(pc300_t * card) } -static inline void show_version(void) +static void show_version(void) { char *rcsvers, *rcsdate, *tmp; @@ -3412,16 +3412,10 @@ static void cpc_init_card(pc300_t * card) static int __devinit cpc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) { - static int first_time = 1; int err, eeprom_outdated = 0; u16 device_id; pc300_t *card; - if (first_time) { - first_time = 0; - show_version(); - } - if ((err = pci_enable_device(pdev)) < 0) return err; @@ -3657,6 +3651,7 @@ static struct pci_driver cpc_driver = { static int __init cpc_init(void) { + show_version(); return pci_register_driver(&cpc_driver); } |