pcmcia: replace kio_addr_t with unsigned int everywhere
Remove kio_addr_t, and replace it with unsigned int. No known architecture needs more than 32 bits for IO addresses and ports and having a separate type for it is just messy. Signed-off-by: Olof Johansson <olof@lixom.net> Cc: Christoph Hellwig <hch@lst.de> Cc: Matthew Wilcox <matthew@wil.cx> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
ecb8a8472f
commit
906da809c5
@@ -389,7 +389,7 @@ static void serial_detach(struct pcmcia_device *link)
|
||||
/*====================================================================*/
|
||||
|
||||
static int setup_serial(struct pcmcia_device *handle, struct serial_info * info,
|
||||
kio_addr_t iobase, int irq)
|
||||
unsigned int iobase, int irq)
|
||||
{
|
||||
struct uart_port port;
|
||||
int line;
|
||||
@@ -456,7 +456,7 @@ next_tuple(struct pcmcia_device *handle, tuple_t * tuple, cisparse_t * parse)
|
||||
|
||||
static int simple_config(struct pcmcia_device *link)
|
||||
{
|
||||
static const kio_addr_t base[5] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8, 0x0 };
|
||||
static const unsigned int base[5] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8, 0x0 };
|
||||
static const int size_table[2] = { 8, 16 };
|
||||
struct serial_info *info = link->priv;
|
||||
struct serial_cfg_mem *cfg_mem;
|
||||
@@ -480,7 +480,7 @@ static int simple_config(struct pcmcia_device *link)
|
||||
/* If the card is already configured, look up the port and irq */
|
||||
i = pcmcia_get_configuration_info(link, &config);
|
||||
if ((i == CS_SUCCESS) && (config.Attributes & CONF_VALID_CLIENT)) {
|
||||
kio_addr_t port = 0;
|
||||
unsigned int port = 0;
|
||||
if ((config.BasePort2 != 0) && (config.NumPorts2 == 8)) {
|
||||
port = config.BasePort2;
|
||||
info->slave = 1;
|
||||
|
Reference in New Issue
Block a user