diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:31 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:31 -0400 |
commit | 28cfd8af52a9ed4e5bd1751ea6bc0b8c870f68ec (patch) | |
tree | 77491546baa6572cfc22ba7a93062cc857f9adbe /drivers/ide/pci/sis5513.c | |
parent | 2a8f7450f828eaee49d66f41f99ac2e54f1160a6 (diff) |
ide: include PCI device name in messages from IDE PCI host drivers
While at it:
* Apply small fixes to messages (s/dma/DMA/, remove trailing '.', etc).
* Fix printk() call in ide_setup_pci_baseregs() to use KERN_INFO.
* Move printk() call from ide_pci_clear_simplex() to the caller.
* Cleanup do_ide_setup_pci_device() a bit.
* amd74xx.c: remove superfluous PCI device revision information.
* hpt366.c: fix two printk() calls in ->init_chipset to use KERN_INFO.
* pdc202xx_new.c: fix printk() call in ->init_chipset to use KERN_INFO.
* pdc202xx_old.c: fix driver message in pdc202xx_init_one().
* via82cxxx.c: fix driver warning message in via_init_one().
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/sis5513.c')
-rw-r--r-- | drivers/ide/pci/sis5513.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c index f3cf7c6c0cc3..518d8ab413f3 100644 --- a/drivers/ide/pci/sis5513.c +++ b/drivers/ide/pci/sis5513.c | |||
@@ -380,8 +380,9 @@ static int __devinit sis_find_family(struct pci_dev *dev) | |||
380 | } | 380 | } |
381 | pci_dev_put(host); | 381 | pci_dev_put(host); |
382 | 382 | ||
383 | printk(KERN_INFO "SIS5513: %s %s controller\n", | 383 | printk(KERN_INFO "SIS5513 %s: %s %s controller\n", |
384 | SiSHostChipInfo[i].name, chipset_capability[chipset_family]); | 384 | pci_name(dev), SiSHostChipInfo[i].name, |
385 | chipset_capability[chipset_family]); | ||
385 | } | 386 | } |
386 | 387 | ||
387 | if (!chipset_family) { /* Belongs to pci-quirks */ | 388 | if (!chipset_family) { /* Belongs to pci-quirks */ |
@@ -396,7 +397,8 @@ static int __devinit sis_find_family(struct pci_dev *dev) | |||
396 | pci_write_config_dword(dev, 0x54, idemisc); | 397 | pci_write_config_dword(dev, 0x54, idemisc); |
397 | 398 | ||
398 | if (trueid == 0x5518) { | 399 | if (trueid == 0x5518) { |
399 | printk(KERN_INFO "SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller\n"); | 400 | printk(KERN_INFO "SIS5513 %s: SiS 962/963 MuTIOL IDE UDMA133 controller\n", |
401 | pci_name(dev)); | ||
400 | chipset_family = ATA_133; | 402 | chipset_family = ATA_133; |
401 | 403 | ||
402 | /* Check for 5513 compability mapping | 404 | /* Check for 5513 compability mapping |
@@ -405,7 +407,8 @@ static int __devinit sis_find_family(struct pci_dev *dev) | |||
405 | */ | 407 | */ |
406 | if ((idemisc & 0x40000000) == 0) { | 408 | if ((idemisc & 0x40000000) == 0) { |
407 | pci_write_config_dword(dev, 0x54, idemisc | 0x40000000); | 409 | pci_write_config_dword(dev, 0x54, idemisc | 0x40000000); |
408 | printk(KERN_INFO "SIS5513: Switching to 5513 register mapping\n"); | 410 | printk(KERN_INFO "SIS5513 %s: Switching to 5513 register mapping\n", |
411 | pci_name(dev)); | ||
409 | } | 412 | } |
410 | } | 413 | } |
411 | } | 414 | } |
@@ -429,10 +432,12 @@ static int __devinit sis_find_family(struct pci_dev *dev) | |||
429 | pci_dev_put(lpc_bridge); | 432 | pci_dev_put(lpc_bridge); |
430 | 433 | ||
431 | if (lpc_bridge->revision == 0x10 && (prefctl & 0x80)) { | 434 | if (lpc_bridge->revision == 0x10 && (prefctl & 0x80)) { |
432 | printk(KERN_INFO "SIS5513: SiS 961B MuTIOL IDE UDMA133 controller\n"); | 435 | printk(KERN_INFO "SIS5513 %s: SiS 961B MuTIOL IDE UDMA133 controller\n", |
436 | pci_name(dev)); | ||
433 | chipset_family = ATA_133a; | 437 | chipset_family = ATA_133a; |
434 | } else { | 438 | } else { |
435 | printk(KERN_INFO "SIS5513: SiS 961 MuTIOL IDE UDMA100 controller\n"); | 439 | printk(KERN_INFO "SIS5513 %s: SiS 961 MuTIOL IDE UDMA100 controller\n", |
440 | pci_name(dev)); | ||
436 | chipset_family = ATA_100; | 441 | chipset_family = ATA_100; |
437 | } | 442 | } |
438 | } | 443 | } |