net: sfp: use linkmode_*() rather than open coding
[linux-2.6-microblaze.git] / drivers / net / phy / sfp-bus.c
index 208a939..6fa679b 100644 (file)
@@ -328,7 +328,7 @@ void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
         * modules use 2500Mbaud rather than 3100 or 3200Mbaud for
         * 2500BASE-X, so we allow some slack here.
         */
-       if (bitmap_empty(modes, __ETHTOOL_LINK_MODE_MASK_NBITS) && br_nom) {
+       if (linkmode_empty(modes) && br_nom) {
                if (br_min <= 1300 && br_max >= 1200) {
                        phylink_set(modes, 1000baseX_Full);
                        __set_bit(PHY_INTERFACE_MODE_1000BASEX, interfaces);