|
@@ -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);
|
|
@@ -109,7 +109,6 @@ static void spi_pci_remove(struct pci_dev *pdev)
|
|
|
{
|
|
|
struct dw_spi_pci *dwpci = pci_get_drvdata(pdev);
|
|
|
|
|
|
- pci_set_drvdata(pdev, NULL);
|
|
|
dw_spi_remove_host(&dwpci->dws);
|
|
|
iounmap(dwpci->dws.regs);
|
|
|
pci_release_region(pdev, 0);
|