diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-25 12:57:33 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-25 12:57:33 +0000 |
commit | 05735d303b93c2a1050ef515e8c67e393ae3987f (patch) | |
tree | 2a4d205fd4cde0b74a467cf30081e0ab4c627ba9 /target/linux/adm5120/patches-3.3/a10-pata-rb150-cf-3.3-fix.patch | |
parent | 0e8ddda2ee6ce7ba23b4a92b4c01e01aa424050b (diff) |
adm5120: add 3.3 support
Partially based on the 3.1 patches by Hartmut Knaack <knaack.h [at] gmx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31474 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-3.3/a10-pata-rb150-cf-3.3-fix.patch')
-rw-r--r-- | target/linux/adm5120/patches-3.3/a10-pata-rb150-cf-3.3-fix.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-3.3/a10-pata-rb150-cf-3.3-fix.patch b/target/linux/adm5120/patches-3.3/a10-pata-rb150-cf-3.3-fix.patch new file mode 100644 index 0000000000..fc3257a73c --- /dev/null +++ b/target/linux/adm5120/patches-3.3/a10-pata-rb150-cf-3.3-fix.patch @@ -0,0 +1,33 @@ +--- a/drivers/ata/pata_rb153_cf.c ++++ b/drivers/ata/pata_rb153_cf.c +@@ -56,7 +56,7 @@ static inline void rb153_pata_finish_io( + ata_sff_dma_pause(ap); + ndelay(RB153_CF_IO_DELAY); + +- set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); ++ irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); + } + + static void rb153_pata_exec_command(struct ata_port *ap, +@@ -107,11 +107,11 @@ static irqreturn_t rb153_pata_irq_handle + struct rb153_cf_info *info = ah->private_data; + + if (gpio_get_value(info->gpio_line)) { +- set_irq_type(info->irq, IRQ_TYPE_LEVEL_LOW); ++ irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_LOW); + if (!info->frozen) + ata_sff_interrupt(irq, dev_instance); + } else { +- set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); ++ irq_set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH); + } + + return IRQ_HANDLED; +@@ -138,7 +138,6 @@ static void rb153_pata_setup_port(struct + + ap->ops = &rb153_pata_port_ops; + ap->pio_mask = 0x1f; /* PIO4 */ +- ap->flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO; + + ap->ioaddr.cmd_addr = info->iobase + RB153_CF_REG_CMD; + ap->ioaddr.ctl_addr = info->iobase + RB153_CF_REG_CTRL; |