Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: pata_hpt3x2n: convert pr_XXX() calls

Convert pr_XXX() calls to structured logging.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>

authored by

Hannes Reinecke and committed by
Damien Le Moal
cb8d5daa cb3f48fc

+5 -7
+5 -7
drivers/ata/pata_hpt3x2n.c
··· 15 15 * TODO 16 16 * Work out best PLL policy 17 17 */ 18 - 19 - #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 20 - 21 18 #include <linux/kernel.h> 22 19 #include <linux/module.h> 23 20 #include <linux/pci.h> ··· 417 420 u16 sr; 418 421 u32 total = 0; 419 422 420 - pr_warn("BIOS clock data not set\n"); 423 + dev_warn(&pdev->dev, "BIOS clock data not set\n"); 421 424 422 425 /* This is the process the HPT371 BIOS is reported to use */ 423 426 for (i = 0; i < 128; i++) { ··· 527 530 ppi[0] = &info_hpt372n; 528 531 break; 529 532 default: 530 - pr_err("PCI table is bogus, please report (%d)\n", dev->device); 533 + dev_err(&dev->dev,"PCI table is bogus, please report (%d)\n", 534 + dev->device); 531 535 return -ENODEV; 532 536 } 533 537 ··· 577 579 pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low); 578 580 } 579 581 if (adjust == 8) { 580 - pr_err("DPLL did not stabilize!\n"); 582 + dev_err(&dev->dev, "DPLL did not stabilize!\n"); 581 583 return -ENODEV; 582 584 } 583 585 584 - pr_info("bus clock %dMHz, using 66MHz DPLL\n", pci_mhz); 586 + dev_info(&dev->dev, "bus clock %dMHz, using 66MHz DPLL\n", pci_mhz); 585 587 586 588 /* 587 589 * Set our private data up. We only need a few flags