OSDN Git Service

ata: pata_cs5520: convert printk() calls
authorHannes Reinecke <hare@suse.de>
Tue, 21 Dec 2021 07:21:13 +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_cs5520.c

index 247c147..24ce866 100644 (file)
@@ -153,12 +153,12 @@ static int cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
 
        /* Perform set up for DMA */
        if (pci_enable_device_io(pdev)) {
-               printk(KERN_ERR DRV_NAME ": unable to configure BAR2.\n");
+               dev_err(&pdev->dev, "unable to configure BAR2.\n");
                return -ENODEV;
        }
 
        if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
-               printk(KERN_ERR DRV_NAME ": unable to configure DMA mask.\n");
+               dev_err(&pdev->dev, "unable to configure DMA mask.\n");
                return -ENODEV;
        }