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

ata: pata_marvell: convert printk() calls

Convert the printk() call to structured logging and
drop the pointless PCI bar debug messages.

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
21f0e60a 3697aaaf

+2 -7
+2 -7
drivers/ata/pata_marvell.c
··· 32 32 33 33 static int marvell_pata_active(struct pci_dev *pdev) 34 34 { 35 - int i; 36 35 u32 devices; 37 36 void __iomem *barp; 38 37 ··· 42 43 barp = pci_iomap(pdev, 5, 0x10); 43 44 if (barp == NULL) 44 45 return -ENOMEM; 45 - 46 - printk("BAR5:"); 47 - for(i = 0; i <= 0x0F; i++) 48 - printk("%02X:%02X ", i, ioread8(barp + i)); 49 - printk("\n"); 50 46 51 47 devices = ioread32(barp + 0x0C); 52 48 pci_iounmap(pdev, barp); ··· 143 149 144 150 #if IS_ENABLED(CONFIG_SATA_AHCI) 145 151 if (!marvell_pata_active(pdev)) { 146 - printk(KERN_INFO DRV_NAME ": PATA port not active, deferring to AHCI driver.\n"); 152 + dev_info(&pdev->dev, 153 + "PATA port not active, deferring to AHCI driver.\n"); 147 154 return -ENODEV; 148 155 } 149 156 #endif