aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/sedlbauer_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/hisax/sedlbauer_cs.c')
-rw-r--r--drivers/isdn/hisax/sedlbauer_cs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/isdn/hisax/sedlbauer_cs.c b/drivers/isdn/hisax/sedlbauer_cs.c
index 4755eb440f7e..0b06dbb2d52d 100644
--- a/drivers/isdn/hisax/sedlbauer_cs.c
+++ b/drivers/isdn/hisax/sedlbauer_cs.c
@@ -232,7 +232,6 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev,
232 */ 232 */
233 if ((cfg->mem.nwin > 0) || (dflt->mem.nwin > 0)) { 233 if ((cfg->mem.nwin > 0) || (dflt->mem.nwin > 0)) {
234 cistpl_mem_t *mem = (cfg->mem.nwin) ? &cfg->mem : &dflt->mem; 234 cistpl_mem_t *mem = (cfg->mem.nwin) ? &cfg->mem : &dflt->mem;
235 memreq_t map;
236 req->Attributes = WIN_DATA_WIDTH_16|WIN_MEMORY_TYPE_CM; 235 req->Attributes = WIN_DATA_WIDTH_16|WIN_MEMORY_TYPE_CM;
237 req->Attributes |= WIN_ENABLE; 236 req->Attributes |= WIN_ENABLE;
238 req->Base = mem->win[0].host_addr; 237 req->Base = mem->win[0].host_addr;
@@ -240,9 +239,9 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev,
240 req->AccessSpeed = 0; 239 req->AccessSpeed = 0;
241 if (pcmcia_request_window(p_dev, req, &p_dev->win) != 0) 240 if (pcmcia_request_window(p_dev, req, &p_dev->win) != 0)
242 return -ENODEV; 241 return -ENODEV;
243 map.Page = 0; 242
244 map.CardOffset = mem->win[0].card_addr; 243 if (pcmcia_map_mem_page(p_dev, p_dev->win,
245 if (pcmcia_map_mem_page(p_dev, p_dev->win, &map) != 0) 244 mem->win[0].card_addr) != 0)
246 return -ENODEV; 245 return -ENODEV;
247 } 246 }
248 return 0; 247 return 0;