~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/media/video/saa7164/saa7164-core.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
static void saa7164_work_enchandler_helper(struct saa7164_port *port, int bufnr)
278
278
{
279
279
        struct saa7164_dev *dev = port->dev;
280
 
        struct saa7164_buffer *buf = 0;
281
 
        struct saa7164_user_buffer *ubuf = 0;
 
280
        struct saa7164_buffer *buf = NULL;
 
281
        struct saa7164_user_buffer *ubuf = NULL;
282
282
        struct list_head *c, *n;
283
283
        int i = 0;
284
284
        u8 __iomem *p;
649
649
        u32 intid, intstat[INT_SIZE/4];
650
650
        int i, handled = 0, bit;
651
651
 
652
 
        if (dev == 0) {
 
652
        if (dev == NULL) {
653
653
                printk(KERN_ERR "%s() No device specified\n", __func__);
654
654
                handled = 0;
655
655
                goto out;
945
945
 
946
946
static int saa7164_port_init(struct saa7164_dev *dev, int portnr)
947
947
{
948
 
        struct saa7164_port *port = 0;
 
948
        struct saa7164_port *port = NULL;
949
949
 
950
950
        if ((portnr < 0) || (portnr >= SAA7164_MAX_PORTS))
951
951
                BUG();
1247
1247
        }
1248
1248
 
1249
1249
        /* print pci info */
1250
 
        pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &dev->pci_rev);
 
1250
        dev->pci_rev = pci_dev->revision;
1251
1251
        pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER,  &dev->pci_lat);
1252
1252
        printk(KERN_INFO "%s/0: found at %s, rev: %d, irq: %d, "
1253
1253
               "latency: %d, mmio: 0x%llx\n", dev->name,