]> Pileus Git - ~andy/linux/commitdiff
sfc: Use efx_mcdi_mon() to find efx_mcdi_mon structure from efx_nic
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 13 Sep 2012 00:11:24 +0000 (01:11 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 21 Aug 2013 13:20:19 +0000 (14:20 +0100)
This needs to be done before we separate MCDI from siena_nic_data.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi_mon.c

index 1d552f0664d71268d9f57cb6953519f550c4de75..fe42c3bffd920686cb2c6fbcfa5f83b8e8c9ed52 100644 (file)
@@ -400,8 +400,7 @@ fail:
 
 void efx_mcdi_mon_remove(struct efx_nic *efx)
 {
-       struct siena_nic_data *nic_data = efx->nic_data;
-       struct efx_mcdi_mon *hwmon = &nic_data->hwmon;
+       struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx);
        unsigned int i;
 
        for (i = 0; i < hwmon->n_attrs; i++)