mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
pcmcia: pcmcia_config_loop() ConfigIndex unification
Almost all drivers set p_dev->conf.ConfigIndex to cfg->index in the pcmcia_config_loop() callback function. Therefore, factor it out. Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
84e2d34004
commit
498ac1899b
29 changed files with 6 additions and 46 deletions
|
|
@ -132,7 +132,6 @@ static int ixj_config_check(struct pcmcia_device *p_dev,
|
|||
|
||||
if ((cfg->io.nwin > 0) || (dflt->io.nwin > 0)) {
|
||||
cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &dflt->io;
|
||||
p_dev->conf.ConfigIndex = cfg->index;
|
||||
p_dev->io.BasePort1 = io->win[0].base;
|
||||
p_dev->io.NumPorts1 = io->win[0].len;
|
||||
if (io->nwin == 2) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue