summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/mtd.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2011-12-20 01:44:06 +0100
committerBen Hutchings <bhutchings@solarflare.com>2012-01-09 18:08:16 +0100
commit05a9320f7e64b69cbf612a69b7358546519ffc30 (patch)
tree91fb1d688592461e589ef4ab8226ee370446e2d9 /drivers/net/ethernet/sfc/mtd.c
parentsfc: Remove unnecessary inclusion of <asm/io.h>, prompted by checkpatch (diff)
downloadlinux-05a9320f7e64b69cbf612a69b7358546519ffc30.tar.xz
linux-05a9320f7e64b69cbf612a69b7358546519ffc30.zip
sfc: Update MCDI (firmware interface) definitions
Some commands and constants have been renamed; adjust the code accordingly. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/mtd.c')
-rw-r--r--drivers/net/ethernet/sfc/mtd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/mtd.c b/drivers/net/ethernet/sfc/mtd.c
index 13f61fba731f..7f61cd3812d9 100644
--- a/drivers/net/ethernet/sfc/mtd.c
+++ b/drivers/net/ethernet/sfc/mtd.c
@@ -627,8 +627,7 @@ static int siena_mtd_get_fw_subtypes(struct efx_nic *efx,
struct efx_mtd *efx_mtd)
{
struct efx_mtd_partition *part;
- uint16_t fw_subtype_list[MC_CMD_GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST_LEN /
- sizeof(uint16_t)];
+ uint16_t fw_subtype_list[MC_CMD_GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST_MINNUM];
int rc;
rc = efx_mcdi_get_board_cfg(efx, NULL, fw_subtype_list);