bnxt_en: use SWITCHDEV_SET_OPS() for setting vf_rep_switchdev_ops
authorSathya Perla <sathya.perla@broadcom.com>
Tue, 25 Jul 2017 17:28:40 +0000 (13:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 19:48:19 +0000 (12:48 -0700)
commite408ebdc41aa53f0aa552132384daaa5f5c6301d
tree5110cac4cc8e0787041eee781df1607cf2637ab2
parentd3e3becedc43adc8b8fb12e7507dd4e5aae4d17d
bnxt_en: use SWITCHDEV_SET_OPS() for setting vf_rep_switchdev_ops

This fixes the build error:
‘struct net_device’ has no member named ‘switchdev_ops’

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: c124a62ff2dd ("bnxt_en: add support for port_attr_get and and get_phys_port_name")
Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c