net/mlx5_core: HW data structs/types definitions cleanup
[cascardo/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / fw.c
index 06f9036..ef9b769 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Mellanox Technologies inc.  All rights reserved.
+ * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
  *
  * This software is available to you under a choice of one of two
  * licenses.  You may choose to be licensed under the terms of the GNU
@@ -95,7 +95,7 @@ int mlx5_query_odp_caps(struct mlx5_core_dev *dev, struct mlx5_odp_caps *caps)
                goto out;
        }
 
-       memcpy(caps, MLX5_ADDR_OF(query_hca_cap_out, out, capability_struct),
+       memcpy(caps, MLX5_ADDR_OF(query_hca_cap_out, out, capability),
               sizeof(*caps));
 
        mlx5_core_dbg(dev, "on-demand paging capabilities:\nrc: %08x\nuc: %08x\nud: %08x\n",