From: Jingoo Han Date: Fri, 11 Oct 2013 09:31:41 +0000 (+0900) Subject: spi: dw-pci: Use dev_info() instead of printk() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e0045ebf3be4a7461a42b7f87c1c094ac7e4db78;p=deliverable%2Flinux.git spi: dw-pci: Use dev_info() instead of printk() Change raw printk() call to dev_info() to provide a better message to userspace so it can properly identify the device. Signed-off-by: Jingoo Han Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-dw-pci.c b/drivers/spi/spi-dw-pci.c index 6a708620816a..66fa9955ea14 100644 --- a/drivers/spi/spi-dw-pci.c +++ b/drivers/spi/spi-dw-pci.c @@ -40,7 +40,7 @@ static int spi_pci_probe(struct pci_dev *pdev, int pci_bar = 0; int ret; - printk(KERN_INFO "DW: found PCI SPI controller(ID: %04x:%04x)\n", + dev_info(&pdev->dev, "found PCI SPI controller(ID: %04x:%04x)\n", pdev->vendor, pdev->device); ret = pci_enable_device(pdev);