aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/falcon.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-25 11:09:41 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-26 18:59:16 -0500
commit44838a447de3b1541cbf845853c4f8999310b0dd (patch)
tree53d5f1b0a6ad773764c7f97eb1d48619e781a67f /drivers/net/sfc/falcon.c
parent734a350a6ccee59647f064fd49cd6cebc5dda48b (diff)
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>
Diffstat (limited to 'drivers/net/sfc/falcon.c')
-rw-r--r--drivers/net/sfc/falcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index 2c0be6ccc624..2f1f1fca0802 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -2864,7 +2864,7 @@ int falcon_probe_nic(struct efx_nic *efx)
2864 if (rc) 2864 if (rc)
2865 goto fail5; 2865 goto fail5;
2866 2866
2867 rc = falcon_board(efx)->init(efx); 2867 rc = falcon_board(efx)->type->init(efx);
2868 if (rc) { 2868 if (rc) {
2869 EFX_ERR(efx, "failed to initialise board\n"); 2869 EFX_ERR(efx, "failed to initialise board\n");
2870 goto fail6; 2870 goto fail6;
@@ -3067,7 +3067,7 @@ void falcon_remove_nic(struct efx_nic *efx)
3067 struct falcon_board *board = falcon_board(efx); 3067 struct falcon_board *board = falcon_board(efx);
3068 int rc; 3068 int rc;
3069 3069
3070 falcon_board(efx)->fini(efx); 3070 board->type->fini(efx);
3071 3071
3072 /* Remove I2C adapter and clear it in preparation for a retry */ 3072 /* Remove I2C adapter and clear it in preparation for a retry */
3073 rc = i2c_del_adapter(&board->i2c_adap); 3073 rc = i2c_del_adapter(&board->i2c_adap);