[PATCH 01/11] pcmcia: use pcmica_{read,write}_config_byte
Komuro
komurojun-mbn at nifty.com
Mon Aug 2 07:59:26 EDT 2010
Hi,
>--- a/drivers/net/pcmcia/xirc2ps_cs.c
>+++ b/drivers/net/pcmcia/xirc2ps_cs.c
>+ if (err)
> goto config_error;
>- reg.Action = CS_WRITE;
>- reg.Offset = CISREG_IOBASE_1;
>- reg.Value = (link->io.BasePort2 >> 8) & 0xff;
>- if ((err = pcmcia_access_configuration_register(link, ®)))
>+
>+ err = pcmcia_write_config_byte(link, CISREG_IOBASE_1,
>+ link->io.BasePort2 & 0xff);
It should be
err = pcmcia_write_config_byte(link, CISREG_IOBASE_1,
(link->io.BasePort2 >> 8) & 0xff);
More information about the linux-pcmcia
mailing list