sfc: Clean up struct falcon_board and struct falcon_board_data
Put all static information in struct falcon_board_type and replace it with a pointer in struct falcon_board. Simplify probing aocordingly. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
734a350a6c
commit
44838a447d
@@ -1309,7 +1309,7 @@ static void efx_monitor(struct work_struct *data)
|
||||
goto out_requeue;
|
||||
if (!efx->port_enabled)
|
||||
goto out_unlock;
|
||||
rc = falcon_board(efx)->monitor(efx);
|
||||
rc = falcon_board(efx)->type->monitor(efx);
|
||||
if (rc) {
|
||||
EFX_ERR(efx, "Board sensor %s; shutting down PHY\n",
|
||||
(rc == -ERANGE) ? "reported fault" : "failed");
|
||||
|
Reference in New Issue
Block a user