aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/smc91c92_cs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-29 08:06:42 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-09-29 11:20:21 -0400
commitfb49fa533f9d211994c33efb752ffa5b30033729 (patch)
tree675d26cf01c23d9623f274971a065b0dedb10f3a /drivers/net/pcmcia/smc91c92_cs.c
parentcdb138080b78146d1cdadba9f5dadbeb97445b91 (diff)
pcmcia: split up modify_configuration() into two fixup functions
pcmcia_modify_configuration() was only used by two drivers to fix up one issue each: setting the Vpp to a different value, and reducing the IO width to 8 bit. Introduce two explicitly named functions handling these things, and remove one further typedef. CC: netdev@vger.kernel.org CC: linux-mtd@lists.infradead.org Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/pcmcia/smc91c92_cs.c')
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index acc680739c89..395e586d7c0a 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -816,13 +816,10 @@ static int check_sig(struct pcmcia_device *link)
816 } 816 }
817 817
818 if (width) { 818 if (width) {
819 modconf_t mod = {
820 .Attributes = CONF_IO_CHANGE_WIDTH,
821 };
822 printk(KERN_INFO "smc91c92_cs: using 8-bit IO window.\n"); 819 printk(KERN_INFO "smc91c92_cs: using 8-bit IO window.\n");
823 820
824 smc91c92_suspend(link); 821 smc91c92_suspend(link);
825 pcmcia_modify_configuration(link, &mod); 822 pcmcia_fixup_iowidth(link);
826 smc91c92_resume(link); 823 smc91c92_resume(link);
827 return check_sig(link); 824 return check_sig(link);
828 } 825 }