RDMA/nes: Read firmware version from correct place
authorMiroslaw Walukiewicz <Miroslaw.Walukiewicz@intel.com>
Thu, 15 Jul 2010 14:53:29 +0000 (14:53 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 4 Aug 2010 20:22:28 +0000 (13:22 -0700)
Signed-off-by: Mirek Walukiewicz <miroslaw.walukiewicz@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c

index 3b50dc521b979a8f0013aea1d3f29696d26e8982..3638b834a1a833076796bd93e1400fcd4aa795e3 100644 (file)
@@ -518,7 +518,7 @@ static int nes_query_device(struct ib_device *ibdev, struct ib_device_attr *prop
        memset(props, 0, sizeof(*props));
        memcpy(&props->sys_image_guid, nesvnic->netdev->dev_addr, 6);
 
-       props->fw_ver = nesdev->nesadapter->fw_ver;
+       props->fw_ver = nesdev->nesadapter->firmware_version;
        props->device_cap_flags = nesdev->nesadapter->device_cap_flags;
        props->vendor_id = nesdev->nesadapter->vendor_id;
        props->vendor_part_id = nesdev->nesadapter->vendor_part_id;