net/mlx5_core: Use accessor functions to read from device memory
authorEli Cohen <eli@mellanox.com>
Thu, 8 Oct 2015 14:13:59 +0000 (17:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Oct 2015 14:27:48 +0000 (07:27 -0700)
commit0144a95e2ad53a40c62148f44fb0c1f9d2a0d1e9
treef165379abbd7bdf57b94b3e357cf794e43370fb9
parent020446e01eebc9dbe7eda038e570ab9c7ab13586
net/mlx5_core: Use accessor functions to read from device memory

Use ioread function to read health buffer data. In addition, print the
firmware version as a string for readability and also use dev_err to have
the device string to be printed.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/health.c