mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
pcmcia: remove memreq_t
Page already had to be set to 0; Offset can easily be passed as parameter to pcmcia_map_mem_page. CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: Michael Buesch <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
a3d0d4d8dd
commit
b5cb259e7f
18 changed files with 42 additions and 105 deletions
|
|
@ -232,7 +232,6 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev,
|
|||
*/
|
||||
if ((cfg->mem.nwin > 0) || (dflt->mem.nwin > 0)) {
|
||||
cistpl_mem_t *mem = (cfg->mem.nwin) ? &cfg->mem : &dflt->mem;
|
||||
memreq_t map;
|
||||
req->Attributes = WIN_DATA_WIDTH_16|WIN_MEMORY_TYPE_CM;
|
||||
req->Attributes |= WIN_ENABLE;
|
||||
req->Base = mem->win[0].host_addr;
|
||||
|
|
@ -240,9 +239,9 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev,
|
|||
req->AccessSpeed = 0;
|
||||
if (pcmcia_request_window(p_dev, req, &p_dev->win) != 0)
|
||||
return -ENODEV;
|
||||
map.Page = 0;
|
||||
map.CardOffset = mem->win[0].card_addr;
|
||||
if (pcmcia_map_mem_page(p_dev, p_dev->win, &map) != 0)
|
||||
|
||||
if (pcmcia_map_mem_page(p_dev, p_dev->win,
|
||||
mem->win[0].card_addr) != 0)
|
||||
return -ENODEV;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue