mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 16:06:41 +07:00
sfc: Use efx_mcdi_mon() to find efx_mcdi_mon structure from efx_nic
This needs to be done before we separate MCDI from siena_nic_data. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
parent
5383825ca9
commit
e847b53e9e
@ -400,8 +400,7 @@ int efx_mcdi_mon_probe(struct efx_nic *efx)
|
|||||||
|
|
||||||
void efx_mcdi_mon_remove(struct efx_nic *efx)
|
void efx_mcdi_mon_remove(struct efx_nic *efx)
|
||||||
{
|
{
|
||||||
struct siena_nic_data *nic_data = efx->nic_data;
|
struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx);
|
||||||
struct efx_mcdi_mon *hwmon = &nic_data->hwmon;
|
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < hwmon->n_attrs; i++)
|
for (i = 0; i < hwmon->n_attrs; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user