/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/base.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
313
313
                mod_info("Found unknown Xilinx device (%x) at %s\n", id->device, dev_name(&pdev->dev));
314
314
            }
315
315
        } else {
316
 
                /* It is something else */
317
 
                mod_info( "Found unknown board (%x:%x) at %s\n", id->vendor, id->device, dev_name(&pdev->dev));
 
316
            /* It is something else */
 
317
            mod_info( "Found unknown board (%x:%x) at %s\n", id->vendor, id->device, dev_name(&pdev->dev));
318
318
        }
319
319
 
320
320
        /* Enable the device */
321
321
        if ((err = pci_enable_device(pdev)) != 0) {
322
 
                mod_info("Couldn't enable device\n");
323
 
                goto probe_pcien_fail;
 
322
            mod_info("Couldn't enable device\n");
 
323
            goto probe_pcien_fail;
324
324
        }
325
325
        
326
326
        /* Bus master & dma */
327
 
        if ((id->vendor == PCIE_XILINX_VENDOR_ID)&&(id->device == PCIE_IPECAMERA_DEVICE_ID)) {
328
 
            pci_set_master(pdev);
 
327
        pci_set_master(pdev);
329
328
            
330
 
            err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
331
 
            if (err < 0) {
332
 
                printk(KERN_ERR "pci_set_dma_mask failed\n");
333
 
                goto probe_dma_fail;
334
 
            }
 
329
        err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
 
330
        if (err < 0) {
 
331
            printk(KERN_ERR "pci_set_dma_mask failed\n");
 
332
            goto probe_dma_fail;
335
333
        }
336
334
 
337
335
        /* Set Memory-Write-Invalidate support */