From: Hannes Reinecke Date: Tue, 21 Dec 2021 07:21:14 +0000 (+0100) Subject: ata: pata_cs5536: convert printk() calls X-Git-Tag: irq_urgent_for_v5.17_rc2~8^2~43 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0d43bff5196d2d2c00055470281a11ccfafa740f;p=users%2Fdwmw2%2Flinux.git ata: pata_cs5536: convert printk() calls Convert printk() calls to structured logging. Signed-off-by: Hannes Reinecke Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c index 760ac6e65216f..ab47aeb5587f5 100644 --- a/drivers/ata/pata_cs5536.c +++ b/drivers/ata/pata_cs5536.c @@ -263,12 +263,12 @@ static int cs5536_init_one(struct pci_dev *dev, const struct pci_device_id *id) ppi[1] = &ata_dummy_port_info; if (use_msr) - printk(KERN_ERR DRV_NAME ": Using MSR regs instead of PCI\n"); + dev_err(&dev->dev, DRV_NAME ": Using MSR regs instead of PCI\n"); cs5536_read(dev, CFG, &cfg); if ((cfg & IDE_CFG_CHANEN) == 0) { - printk(KERN_ERR DRV_NAME ": disabled by BIOS\n"); + dev_err(&dev->dev, DRV_NAME ": disabled by BIOS\n"); return -ENODEV; }