source: trunk/target/linux/adm5120/patches-3.3/a10-pata-rb150-cf-3.3-fix.patch @ 31474

Last change on this file since 31474 was 31474, checked in by juhosg, 4 years ago

adm5120: add 3.3 support

Partially based on the 3.1 patches by Hartmut Knaack <knaack.h [at] gmx.de>

File size: 1.1 KB
  • drivers/ata/pata_rb153_cf.c

    a b static inline void rb153_pata_finish_io( 
    5656        ata_sff_dma_pause(ap); 
    5757        ndelay(RB153_CF_IO_DELAY); 
    5858 
    59         set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); 
     59        irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); 
    6060} 
    6161 
    6262static void rb153_pata_exec_command(struct ata_port *ap, 
    static irqreturn_t rb153_pata_irq_handle 
    107107        struct rb153_cf_info *info = ah->private_data; 
    108108 
    109109        if (gpio_get_value(info->gpio_line)) { 
    110                 set_irq_type(info->irq, IRQ_TYPE_LEVEL_LOW); 
     110                irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_LOW); 
    111111                if (!info->frozen) 
    112112                        ata_sff_interrupt(irq, dev_instance); 
    113113        } else { 
    114                 set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); 
     114                irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); 
    115115        } 
    116116 
    117117        return IRQ_HANDLED; 
    static void rb153_pata_setup_port(struct 
    138138 
    139139        ap->ops         = &rb153_pata_port_ops; 
    140140        ap->pio_mask    = 0x1f; /* PIO4 */ 
    141         ap->flags       = ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO; 
    142141 
    143142        ap->ioaddr.cmd_addr     = info->iobase + RB153_CF_REG_CMD; 
    144143        ap->ioaddr.ctl_addr     = info->iobase + RB153_CF_REG_CTRL; 
Note: See TracBrowser for help on using the repository browser.