diff options
author | Cesar Eduardo Barros <cesarb@cesarb.net> | 2009-01-14 23:33:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:03:38 -0500 |
commit | eb5c8bc1442a03755ae75d99b59ccea6bbf25a34 (patch) | |
tree | 1d8f5c84e0431514b24890b3c09c87cce24d1c3b | |
parent | 4101dec9ca64d40f0d673f0a40ba46ba2c60e117 (diff) |
sc92031: more useful banner in kernel log
The banner currently printed when loading the module is mostly useless.
Replace it with a more informative one, printed after probing the device.
Output format copied from 8139cp/8139too.
Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/sc92031.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/sc92031.c b/drivers/net/sc92031.c index 8b75bef4a841..12ce341061a6 100644 --- a/drivers/net/sc92031.c +++ b/drivers/net/sc92031.c | |||
@@ -1423,6 +1423,7 @@ static int __devinit sc92031_probe(struct pci_dev *pdev, | |||
1423 | struct net_device *dev; | 1423 | struct net_device *dev; |
1424 | struct sc92031_priv *priv; | 1424 | struct sc92031_priv *priv; |
1425 | u32 mac0, mac1; | 1425 | u32 mac0, mac1; |
1426 | unsigned long base_addr; | ||
1426 | 1427 | ||
1427 | err = pci_enable_device(pdev); | 1428 | err = pci_enable_device(pdev); |
1428 | if (unlikely(err < 0)) | 1429 | if (unlikely(err < 0)) |
@@ -1497,6 +1498,14 @@ static int __devinit sc92031_probe(struct pci_dev *pdev, | |||
1497 | if (err < 0) | 1498 | if (err < 0) |
1498 | goto out_register_netdev; | 1499 | goto out_register_netdev; |
1499 | 1500 | ||
1501 | #if SC92031_USE_BAR == 0 | ||
1502 | base_addr = dev->mem_start; | ||
1503 | #elif SC92031_USE_BAR == 1 | ||
1504 | base_addr = dev->base_addr; | ||
1505 | #endif | ||
1506 | printk(KERN_INFO "%s: SC92031 at 0x%lx, %pM, IRQ %d\n", dev->name, | ||
1507 | base_addr, dev->dev_addr, dev->irq); | ||
1508 | |||
1500 | return 0; | 1509 | return 0; |
1501 | 1510 | ||
1502 | out_register_netdev: | 1511 | out_register_netdev: |
@@ -1603,7 +1612,6 @@ static struct pci_driver sc92031_pci_driver = { | |||
1603 | 1612 | ||
1604 | static int __init sc92031_init(void) | 1613 | static int __init sc92031_init(void) |
1605 | { | 1614 | { |
1606 | printk(KERN_INFO SC92031_DESCRIPTION " " SC92031_VERSION "\n"); | ||
1607 | return pci_register_driver(&sc92031_pci_driver); | 1615 | return pci_register_driver(&sc92031_pci_driver); |
1608 | } | 1616 | } |
1609 | 1617 | ||