Print this page
8510 pcmcia: typo in pcmcia_prop_op

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/pcmcia/nexus/pcmcia.c
          +++ new/usr/src/uts/common/pcmcia/nexus/pcmcia.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2017 RackTop Systems.
  24   26   */
  25   27  
  26   28  /*
  27   29   * PCMCIA NEXUS
  28   30   *      The PCMCIA module is a generalized interface for
  29   31   *      implementing PCMCIA nexus drivers.  It preserves
  30   32   *      the logical socket name space while allowing multiple
  31   33   *      instances of the hardware to be properly represented
  32   34   *      in the device tree.
  33   35   *
↓ open down ↓ 809 lines elided ↑ open up ↑
 843  845                                  return (DDI_PROP_NOT_FOUND);
 844  846                          }
 845  847                          break;
 846  848                  case PCMCIA_PROP_R2TYPE:
 847  849                          propptr = NULL;
 848  850                          if (ppd->ppd_flags & PPD_CARD_CARDBUS)
 849  851                                  return (DDI_PROP_NOT_FOUND);
 850  852                          break;
 851  853                  case PCMCIA_PROP_CARDBUS:
 852  854                          propptr = NULL;
 853      -                        if (!(ppd->ppd_flags * PPD_CARD_CARDBUS))
      855 +                        if (!(ppd->ppd_flags & PPD_CARD_CARDBUS))
 854  856                                  return (DDI_PROP_NOT_FOUND);
 855  857                          break;
 856  858                  }
 857  859  
 858  860                  break;
 859  861  
 860  862          case PCMCIA_PROP_CIS:
 861  863                  /*
 862  864                   * once we have the lookup code in place
 863  865                   * it is sufficient to break out of the switch
↓ open down ↓ 4688 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX