diff options
author | Vitaly Bordug <vbordug@ru.mvista.com> | 2005-12-08 10:53:20 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-01-05 18:27:48 -0500 |
commit | a94515fa1f1609249dbebcfb93181ad0ba4b285a (patch) | |
tree | e3f3462f481ea6f977f56a34a5467bddf2d3120b /drivers/pcmcia/m8xx_pcmcia.c | |
parent | 3b27e9421a1433689704fe0a02e926d4ba971121 (diff) |
[PATCH] m8xx_pcmcia: support MAP_AUTOSZ required for CF cards
This fixes misconfiguration that could result in odd work of some old CF
cards.
Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/m8xx_pcmcia.c')
-rw-r--r-- | drivers/pcmcia/m8xx_pcmcia.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c index 570e4e868b24..ddaab13d21bd 100644 --- a/drivers/pcmcia/m8xx_pcmcia.c +++ b/drivers/pcmcia/m8xx_pcmcia.c | |||
@@ -1012,8 +1012,7 @@ static int m8xx_set_io_map(struct pcmcia_socket *sock, struct pccard_io_map *io) | |||
1012 | if(io->flags & MAP_WRPROT) | 1012 | if(io->flags & MAP_WRPROT) |
1013 | reg |= M8XX_PCMCIA_POR_WRPROT; | 1013 | reg |= M8XX_PCMCIA_POR_WRPROT; |
1014 | 1014 | ||
1015 | /*if(io->flags & (MAP_16BIT | MAP_AUTOSZ))*/ | 1015 | if(io->flags & (MAP_16BIT | MAP_AUTOSZ)) |
1016 | if(io->flags & MAP_16BIT) | ||
1017 | reg |= M8XX_PCMCIA_POR_16BIT; | 1016 | reg |= M8XX_PCMCIA_POR_16BIT; |
1018 | 1017 | ||
1019 | if(io->flags & MAP_ACTIVE) | 1018 | if(io->flags & MAP_ACTIVE) |