diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-02 09:30:31 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 19:22:00 -0400 |
commit | 8e2fc39ddea7fe8c6798837da282db88a09af793 (patch) | |
tree | 7cba37b5b86f4ff25562012a14e29424e3872de0 /drivers/net/pcmcia | |
parent | 498ac1899b62626bf6879a251d75c22ec564c559 (diff) |
pcmcia: pcmcia_config_loop() default CIS entry handling
Many drivers use the default CIS entry within their pcmcia_config_loop()
callback function. Therefore, factor the default CIS entry handling out.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/pcmcia')
-rw-r--r-- | drivers/net/pcmcia/axnet_cs.c | 1 | ||||
-rw-r--r-- | drivers/net/pcmcia/pcnet_cs.c | 1 | ||||
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 2 |
4 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index 04ece0b77d1d..c99dc5d54d19 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c | |||
@@ -286,6 +286,7 @@ static int try_io_port(struct pcmcia_device *link) | |||
286 | 286 | ||
287 | static int axnet_configcheck(struct pcmcia_device *p_dev, | 287 | static int axnet_configcheck(struct pcmcia_device *p_dev, |
288 | cistpl_cftable_entry_t *cfg, | 288 | cistpl_cftable_entry_t *cfg, |
289 | cistpl_cftable_entry_t *dflt, | ||
289 | void *priv_data) | 290 | void *priv_data) |
290 | { | 291 | { |
291 | int i; | 292 | int i; |
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index a60608722495..10fc537804b0 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -514,6 +514,7 @@ static int try_io_port(struct pcmcia_device *link) | |||
514 | 514 | ||
515 | static int pcnet_confcheck(struct pcmcia_device *p_dev, | 515 | static int pcnet_confcheck(struct pcmcia_device *p_dev, |
516 | cistpl_cftable_entry_t *cfg, | 516 | cistpl_cftable_entry_t *cfg, |
517 | cistpl_cftable_entry_t *dflt, | ||
517 | void *priv_data) | 518 | void *priv_data) |
518 | { | 519 | { |
519 | int *has_shmem = priv_data; | 520 | int *has_shmem = priv_data; |
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 1e595038a492..05bca83c5e27 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -461,6 +461,7 @@ static int mhz_3288_power(struct pcmcia_device *link) | |||
461 | 461 | ||
462 | static int mhz_mfc_config_check(struct pcmcia_device *p_dev, | 462 | static int mhz_mfc_config_check(struct pcmcia_device *p_dev, |
463 | cistpl_cftable_entry_t *cf, | 463 | cistpl_cftable_entry_t *cf, |
464 | cistpl_cftable_entry_t *dflt, | ||
464 | void *priv_data) | 465 | void *priv_data) |
465 | { | 466 | { |
466 | int k; | 467 | int k; |
@@ -651,6 +652,7 @@ static int mot_setup(struct pcmcia_device *link) | |||
651 | 652 | ||
652 | static int smc_configcheck(struct pcmcia_device *p_dev, | 653 | static int smc_configcheck(struct pcmcia_device *p_dev, |
653 | cistpl_cftable_entry_t *cf, | 654 | cistpl_cftable_entry_t *cf, |
655 | cistpl_cftable_entry_t *dflt, | ||
654 | void *priv_data) | 656 | void *priv_data) |
655 | { | 657 | { |
656 | p_dev->io.BasePort1 = cf->io.win[0].base; | 658 | p_dev->io.BasePort1 = cf->io.win[0].base; |
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index b0de704f229c..a16efa49b855 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -718,6 +718,7 @@ has_ce2_string(struct pcmcia_device * p_dev) | |||
718 | static int | 718 | static int |
719 | xirc2ps_config_modem(struct pcmcia_device *p_dev, | 719 | xirc2ps_config_modem(struct pcmcia_device *p_dev, |
720 | cistpl_cftable_entry_t *cf, | 720 | cistpl_cftable_entry_t *cf, |
721 | cistpl_cftable_entry_t *dflt, | ||
721 | void *priv_data) | 722 | void *priv_data) |
722 | { | 723 | { |
723 | unsigned int ioaddr; | 724 | unsigned int ioaddr; |
@@ -736,6 +737,7 @@ xirc2ps_config_modem(struct pcmcia_device *p_dev, | |||
736 | static int | 737 | static int |
737 | xirc2ps_config_check(struct pcmcia_device *p_dev, | 738 | xirc2ps_config_check(struct pcmcia_device *p_dev, |
738 | cistpl_cftable_entry_t *cf, | 739 | cistpl_cftable_entry_t *cf, |
740 | cistpl_cftable_entry_t *dflt, | ||
739 | void *priv_data) | 741 | void *priv_data) |
740 | { | 742 | { |
741 | int *pass = priv_data; | 743 | int *pass = priv_data; |