diff options
author | David Howells <dhowells@redhat.com> | 2006-12-06 10:01:18 -0500 |
---|---|---|
committer | David Howells <dhowells@warthog.cambridge.redhat.com> | 2006-12-06 10:01:18 -0500 |
commit | 4796b71fbb907ce6b8a9acf1852d3646a80b4576 (patch) | |
tree | 6263f165446c581efdbb760205c1f85378fe6259 /drivers/net/pcmcia/xirc2ps_cs.c | |
parent | 6d5aefb8eaa38e44b5b8cf60c812aceafc02d924 (diff) | |
parent | ec0bf39a471bf6fcd01def2bd677128cea940b73 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/pcmcia/ds.c
Fix up merge failures with Linus's head and fix new compile failures.
Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/net/pcmcia/xirc2ps_cs.c')
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index 5de8850f2323..8478dca3d8d1 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -709,22 +709,11 @@ set_card_type(struct pcmcia_device *link, const void *s) | |||
709 | * Returns: true if this is a CE2 | 709 | * Returns: true if this is a CE2 |
710 | */ | 710 | */ |
711 | static int | 711 | static int |
712 | has_ce2_string(struct pcmcia_device * link) | 712 | has_ce2_string(struct pcmcia_device * p_dev) |
713 | { | 713 | { |
714 | tuple_t tuple; | 714 | if (p_dev->prod_id[2] && strstr(p_dev->prod_id[2], "CE2")) |
715 | cisparse_t parse; | 715 | return 1; |
716 | u_char buf[256]; | 716 | return 0; |
717 | |||
718 | tuple.Attributes = 0; | ||
719 | tuple.TupleData = buf; | ||
720 | tuple.TupleDataMax = 254; | ||
721 | tuple.TupleOffset = 0; | ||
722 | tuple.DesiredTuple = CISTPL_VERS_1; | ||
723 | if (!first_tuple(link, &tuple, &parse) && parse.version_1.ns > 2) { | ||
724 | if (strstr(parse.version_1.str + parse.version_1.ofs[2], "CE2")) | ||
725 | return 1; | ||
726 | } | ||
727 | return 0; | ||
728 | } | 717 | } |
729 | 718 | ||
730 | /**************** | 719 | /**************** |
@@ -794,13 +783,6 @@ xirc2ps_config(struct pcmcia_device * link) | |||
794 | goto failure; | 783 | goto failure; |
795 | } | 784 | } |
796 | 785 | ||
797 | /* get configuration stuff */ | ||
798 | tuple.DesiredTuple = CISTPL_CONFIG; | ||
799 | if ((err=first_tuple(link, &tuple, &parse))) | ||
800 | goto cis_error; | ||
801 | link->conf.ConfigBase = parse.config.base; | ||
802 | link->conf.Present = parse.config.rmask[0]; | ||
803 | |||
804 | /* get the ethernet address from the CIS */ | 786 | /* get the ethernet address from the CIS */ |
805 | tuple.DesiredTuple = CISTPL_FUNCE; | 787 | tuple.DesiredTuple = CISTPL_FUNCE; |
806 | for (err = first_tuple(link, &tuple, &parse); !err; | 788 | for (err = first_tuple(link, &tuple, &parse); !err; |
@@ -1064,8 +1046,6 @@ xirc2ps_config(struct pcmcia_device * link) | |||
1064 | xirc2ps_release(link); | 1046 | xirc2ps_release(link); |
1065 | return -ENODEV; | 1047 | return -ENODEV; |
1066 | 1048 | ||
1067 | cis_error: | ||
1068 | printk(KNOT_XIRC "unable to parse CIS\n"); | ||
1069 | failure: | 1049 | failure: |
1070 | return -ENODEV; | 1050 | return -ENODEV; |
1071 | } /* xirc2ps_config */ | 1051 | } /* xirc2ps_config */ |