提交 c69f4122 编写于 作者: G Grant Grundler 提交者: Jeff Garzik

[PATCH] Print physical address in tulip_init_one

As the cookie returned by pci_iomap() is fairly useless...

[Compile warning on pci_resource_start() format fixed up by Valerie
Henson.]
Signed-off-by: NGrant Grundler <grundler@parisc-linux.org>
Signed-off-by: NKyle McMartin <kyle@parisc-linux.org>
Signed-off-by: NValerie Henson <val_henson@linux.intel.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 6b92801b
......@@ -1644,8 +1644,14 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
if (register_netdev(dev))
goto err_out_free_ring;
printk(KERN_INFO "%s: %s rev %d at %p,",
dev->name, chip_name, chip_rev, ioaddr);
printk(KERN_INFO "%s: %s rev %d at "
#ifdef CONFIG_TULIP_MMIO
"MMIO"
#else
"Port"
#endif
" %#llx,", dev->name, chip_name, chip_rev,
(unsigned long long) pci_resource_start(pdev, TULIP_BAR));
pci_set_drvdata(pdev, dev);
if (eeprom_missing)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册