]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/ata/pata_netcell.c
config: tegra3: enable /dev mount with ACL
[linux-2.6.git] / drivers / ata / pata_netcell.c
index 9a698097134b093522d701211f30b2bb7bccc5f2..9979a43bc59607735449d5b2c976a4d81ff5bc45 100644 (file)
@@ -26,7 +26,7 @@ static unsigned int netcell_read_id(struct ata_device *adev,
        unsigned int err_mask = ata_do_dev_read_id(adev, tf, id);
        /* Firmware forgets to mark words 85-87 valid */
        if (err_mask == 0)
-               id[ATA_ID_CSF_DEFAULT] |= 0x0400;
+               id[ATA_ID_CSF_DEFAULT] |= 0x4000;
        return err_mask;
 }
 
@@ -57,7 +57,6 @@ static struct ata_port_operations netcell_ops = {
 
 static int netcell_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
 {
-       static int printed_version;
        static const struct ata_port_info info = {
                .flags          = ATA_FLAG_SLAVE_POSS,
                /* Actually we don't really care about these as the
@@ -70,9 +69,7 @@ static int netcell_init_one (struct pci_dev *pdev, const struct pci_device_id *e
        const struct ata_port_info *port_info[] = { &info, NULL };
        int rc;
 
-       if (!printed_version++)
-               dev_printk(KERN_DEBUG, &pdev->dev,
-                          "version " DRV_VERSION "\n");
+       ata_print_version_once(&pdev->dev, DRV_VERSION);
 
        rc = pcim_enable_device(pdev);
        if (rc)
@@ -82,7 +79,7 @@ static int netcell_init_one (struct pci_dev *pdev, const struct pci_device_id *e
        ata_pci_bmdma_clear_simplex(pdev);
 
        /* And let the library code do the work */
-       return ata_pci_sff_init_one(pdev, port_info, &netcell_sht, NULL);
+       return ata_pci_bmdma_init_one(pdev, port_info, &netcell_sht, NULL, 0);
 }
 
 static const struct pci_device_id netcell_pci_tbl[] = {