mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
pcmcia: encapsulate ioaddr_t
By now, ioaddr_t should only be used by the deprecated ioctl, as it does not correctly reflect the maximum ioport range at least on some architectures. Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
a58357862e
commit
d39bd56452
5 changed files with 12 additions and 11 deletions
|
|
@ -292,7 +292,7 @@ au1x00_pcmcia_set_io_map(struct pcmcia_socket *sock, struct pccard_io_map *map)
|
|||
skt->spd_io[map->map] = speed;
|
||||
}
|
||||
|
||||
map->start=(ioaddr_t)(u32)skt->virt_io;
|
||||
map->start=(unsigned int)(u32)skt->virt_io;
|
||||
map->stop=map->start+MAP_SIZE;
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ struct au1000_pcmcia_socket {
|
|||
struct resource res_attr;
|
||||
|
||||
void * virt_io;
|
||||
ioaddr_t phys_io;
|
||||
unsigned int phys_io;
|
||||
unsigned int phys_attr;
|
||||
unsigned int phys_mem;
|
||||
unsigned short speed_io, speed_attr, speed_mem;
|
||||
|
|
|
|||
Loading…
Reference in a new issue