diff options
author | Hannes Reinecke <[email protected]> | 2021-12-21 08:21:13 +0100 |
---|---|---|
committer | Damien Le Moal <[email protected]> | 2022-01-05 19:33:03 +0900 |
commit | 56f7979e770b21b1b420b82ddd83a1b4a301fdb5 (patch) | |
tree | 5ea4087b7712e916df7d8c43c1248c7aea508c9b | |
parent | 8705cb7f1b49e03b721ff1891331263dad83f875 (diff) |
ata: pata_cs5520: convert printk() calls
Convert printk() calls to structured logging.
Signed-off-by: Hannes Reinecke <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
-rw-r--r-- | drivers/ata/pata_cs5520.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c index 247c14702624..24ce8665b1f9 100644 --- a/drivers/ata/pata_cs5520.c +++ b/drivers/ata/pata_cs5520.c @@ -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; } |