diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-12-16 20:25:38 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-12-16 20:25:38 +0000 |
commit | 82ed2e4288ce8f2dba7875146a9039fa8c41ffb5 (patch) | |
tree | 9a81af9426fdf648e6d4f12df7a24e6458365c0c /target/linux/adm5120/files/drivers | |
parent | 187f18539d9f70822ac005dd541065c323fd7269 (diff) | |
download | master-187ad058-82ed2e4288ce8f2dba7875146a9039fa8c41ffb5.tar.gz master-187ad058-82ed2e4288ce8f2dba7875146a9039fa8c41ffb5.tar.bz2 master-187ad058-82ed2e4288ce8f2dba7875146a9039fa8c41ffb5.zip |
[adm5120] minor fixes in the RB153 CF driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9782 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/drivers')
-rw-r--r-- | target/linux/adm5120/files/drivers/ata/pata_rb153_cf.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/target/linux/adm5120/files/drivers/ata/pata_rb153_cf.c b/target/linux/adm5120/files/drivers/ata/pata_rb153_cf.c index 1a094eb04f..c6da5c3332 100644 --- a/target/linux/adm5120/files/drivers/ata/pata_rb153_cf.c +++ b/target/linux/adm5120/files/drivers/ata/pata_rb153_cf.c @@ -32,7 +32,7 @@ #include <asm/gpio.h> #define DRV_NAME "pata-rb153-cf" -#define DRV_VERSION "0.2" +#define DRV_VERSION "0.2.1" #define DRV_DESC "PATA driver for RouterBOARD 153 Compact Flash" #define RB153_CF_MAXPORTS 1 @@ -175,21 +175,20 @@ static void rb153_pata_setup_ports(struct ata_host *ah) { struct rb153_cf_info *info = ah->private_data; struct ata_port *ap; - struct ata_ioports *iop; ap = ah->ports[0]; - iop = &ap->ioaddr; ap->ops = &rb153_pata_port_ops; ap->pio_mask = 0x1f; /* PIO4 */ - ap->flags |= ATA_FLAG_MMIO | ATA_FLAG_NO_LEGACY; + ap->flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO; - iop->cmd_addr = info->iobase + RB153_CF_REG_CMD; - iop->ctl_addr = info->iobase + RB153_CF_REG_CTRL; - iop->altstatus_addr = info->iobase + RB153_CF_REG_CTRL; - iop->data_addr = info->iobase + RB153_CF_REG_DATA; + ap->ioaddr.cmd_addr = info->iobase + RB153_CF_REG_CMD; + ap->ioaddr.ctl_addr = info->iobase + RB153_CF_REG_CTRL; + ap->ioaddr.altstatus_addr = info->iobase + RB153_CF_REG_CTRL; - ata_std_ports(iop); + ata_std_ports(&ap->ioaddr); + + ap->ioaddr.data_addr = info->iobase + RB153_CF_REG_DATA; } static __devinit int rb153_pata_driver_probe(struct platform_device *pdev) |