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

« back to all changes in this revision

Viewing changes to drivers/ata/pata_rb532_cf.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:
60
60
        struct rb532_cf_info *info = ah->private_data;
61
61
 
62
62
        if (gpio_get_value(info->gpio_line)) {
63
 
                set_irq_type(info->irq, IRQ_TYPE_LEVEL_LOW);
 
63
                irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_LOW);
64
64
                ata_sff_interrupt(info->irq, dev_instance);
65
65
        } else {
66
 
                set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH);
 
66
                irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH);
67
67
        }
68
68
 
69
69
        return IRQ_HANDLED;
91
91
 
92
92
        ap->ops         = &rb532_pata_port_ops;
93
93
        ap->pio_mask    = ATA_PIO4;
94
 
        ap->flags       = ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO;
95
94
 
96
95
        ap->ioaddr.cmd_addr     = info->iobase + RB500_CF_REG_BASE;
97
96
        ap->ioaddr.ctl_addr     = info->iobase + RB500_CF_REG_CTRL;