Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f01865f0 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

sfc: Change order of device removal to reverse of probe order



This makes efx_pci_remove_main() more obviously the inverse of
efx_pci_probe_main(), and matches our out-of-tree driver.

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d4cdb5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2025,12 +2025,12 @@ static void efx_pci_remove_main(struct efx_nic *efx)
	if (!efx->membase)
		return;

	falcon_fini_interrupt(efx);
	efx_fini_channels(efx);
	efx_fini_port(efx);

	/* Shutdown the board, then the NIC and board state */
	efx->board_info.fini(efx);
	falcon_fini_interrupt(efx);

	efx_fini_napi(efx);
	efx_remove_all(efx);