Author: sephe
Date: Mon Aug  8 05:57:04 2016
New Revision: 303821
URL: https://svnweb.freebsd.org/changeset/base/303821

Log:
  etherswitch: Unbreak LINT build
  
  Sponsored by: Microsoft

Modified:
  head/sys/dev/etherswitch/arswitch/arswitch_reg.c

Modified: head/sys/dev/etherswitch/arswitch/arswitch_reg.c
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitch_reg.c    Mon Aug  8 01:01:05 
2016        (r303820)
+++ head/sys/dev/etherswitch/arswitch/arswitch_reg.c    Mon Aug  8 05:57:04 
2016        (r303821)
@@ -232,7 +232,8 @@ arswitch_modifyreg(device_t dev, int add
        int value;
        uint16_t phy, reg;
 
-       ARSWITCH_LOCK_ASSERT(sc, MA_OWNED);
+       ARSWITCH_LOCK_ASSERT((struct arswitch_softc *)device_get_softc(dev),
+           MA_OWNED);
 
        arswitch_split_setpage(dev, addr, &phy, &reg);
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to