ata: pata_cs5536: convert printk() calls
authorHannes Reinecke <hare@suse.de>
Tue, 21 Dec 2021 07:21:14 +0000 (08:21 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 5 Jan 2022 10:33:03 +0000 (19:33 +0900)
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>
drivers/ata/pata_cs5536.c

index 760ac6e..ab47aeb 100644 (file)
@@ -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;
        }