printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); 
dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); 
static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent){	static int printed_version;	struct ata_probe_ent *probe_ent = NULL;	struct ahci_host_priv *hpriv;	unsigned long base;	void __iomem *mmio_base;	unsigned int board_idx = (unsigned int) ent->driver_data;	int have_msi, pci_dev_busy = 0;	int rc;	VPRINTK("ENTER\n");	if (!printed_version++)		printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n");	rc = pci_enable_device(pdev);	if (rc)		return rc;	rc = pci_request_regions(pdev, DRV_NAME);	if (rc) {		pci_dev_busy = 1;		goto err_out;	}	if (pci_enable_msi(pdev) == 0)		have_msi = 1;	else {		pci_intx(pdev, 1);		have_msi = 0;	}	probe_ent = kmalloc(sizeof(*probe_ent), GFP_KERNEL);	if (probe_ent == NULL) {		rc = -ENOMEM;		goto err_out_msi;	}	memset(probe_ent, 0, sizeof(*probe_ent));	probe_ent->dev = pci_dev_to_dev(pdev);	INIT_LIST_HEAD(&probe_ent->node);	mmio_base = pci_iomap(pdev, AHCI_PCI_BAR, 0);	if (mmio_base == NULL) {		rc = -ENOMEM;		goto err_out_free_ent;	}	base = (unsigned long) mmio_base;	hpriv = kmalloc(sizeof(*hpriv), GFP_KERNEL);	if (!hpriv) {		rc = -ENOMEM;		goto err_out_iounmap;	}	memset(hpriv, 0, sizeof(*hpriv));	probe_ent->sht		= ahci_port_info[board_idx].sht;	probe_ent->host_flags	= ahci_port_info[board_idx].host_flags;	probe_ent->pio_mask	= ahci_port_info[board_idx].pio_mask;	probe_ent->udma_mask	= ahci_port_info[board_idx].udma_mask;	probe_ent->port_ops	= ahci_port_info[board_idx].port_ops;       	probe_ent->irq = pdev->irq;       	probe_ent->irq_flags = SA_SHIRQ;	probe_ent->mmio_base = mmio_base;	probe_ent->private_data = hpriv;	if (have_msi)		hpriv->flags |= AHCI_FLAG_MSI;	/* initialize adapter */	rc = ahci_host_init(probe_ent);	if (rc)		goto err_out_hpriv;	ahci_print_info(probe_ent);	/* FIXME: check ata_device_add return value */	ata_device_add(probe_ent);	kfree(probe_ent);	return 0;err_out_hpriv:	kfree(hpriv);err_out_iounmap:	pci_iounmap(pdev, mmio_base);err_out_free_ent:	kfree(probe_ent);err_out_msi:	if (have_msi)		pci_disable_msi(pdev);	else		pci_intx(pdev, 0);	pci_release_regions(pdev);err_out:	if (!pci_dev_busy)		pci_disable_device(pdev);	return rc;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a9524a76f70f3343e4be27f95a7e92a8ba5f9009/ahci.c/clean/drivers/scsi/ahci.c