mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
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>
This commit is contained in:
parent
3697aaafc3
commit
21f0e60a92
@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
static int marvell_pata_active(struct pci_dev *pdev)
|
static int marvell_pata_active(struct pci_dev *pdev)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
u32 devices;
|
u32 devices;
|
||||||
void __iomem *barp;
|
void __iomem *barp;
|
||||||
|
|
||||||
@ -44,11 +43,6 @@ static int marvell_pata_active(struct pci_dev *pdev)
|
|||||||
if (barp == NULL)
|
if (barp == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
printk("BAR5:");
|
|
||||||
for(i = 0; i <= 0x0F; i++)
|
|
||||||
printk("%02X:%02X ", i, ioread8(barp + i));
|
|
||||||
printk("\n");
|
|
||||||
|
|
||||||
devices = ioread32(barp + 0x0C);
|
devices = ioread32(barp + 0x0C);
|
||||||
pci_iounmap(pdev, barp);
|
pci_iounmap(pdev, barp);
|
||||||
|
|
||||||
@ -149,7 +143,8 @@ static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *i
|
|||||||
|
|
||||||
#if IS_ENABLED(CONFIG_SATA_AHCI)
|
#if IS_ENABLED(CONFIG_SATA_AHCI)
|
||||||
if (!marvell_pata_active(pdev)) {
|
if (!marvell_pata_active(pdev)) {
|
||||||
printk(KERN_INFO DRV_NAME ": PATA port not active, deferring to AHCI driver.\n");
|
dev_info(&pdev->dev,
|
||||||
|
"PATA port not active, deferring to AHCI driver.\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user