mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
ata: pata_rz1000: convert printk() calls
Convert printk() calls to structured logging. 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
21f0e60a92
commit
71306ae27c
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ static int rz1000_fifo_disable(struct pci_dev *pdev)
|
||||||
reg &= 0xDFFF;
|
reg &= 0xDFFF;
|
||||||
if (pci_write_config_word(pdev, 0x40, reg) != 0)
|
if (pci_write_config_word(pdev, 0x40, reg) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
printk(KERN_INFO DRV_NAME ": disabled chipset readahead.\n");
|
dev_info(&pdev->dev, "disabled chipset readahead.\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *en
|
||||||
if (rz1000_fifo_disable(pdev) == 0)
|
if (rz1000_fifo_disable(pdev) == 0)
|
||||||
return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht, NULL, 0);
|
return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht, NULL, 0);
|
||||||
|
|
||||||
printk(KERN_ERR DRV_NAME ": failed to disable read-ahead on chipset..\n");
|
dev_err(&pdev->dev, "failed to disable read-ahead on chipset.\n");
|
||||||
/* Not safe to use so skip */
|
/* Not safe to use so skip */
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue