sfc-falcon: Use dev_get_drvdata where possible
authorChuhong Yuan <hslester96@gmail.com>
Wed, 24 Jul 2019 11:27:06 +0000 (19:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 18:44:46 +0000 (11:44 -0700)
commit8f75ec1a220e0a4b0f1abbc564987fe754cdc6f0
treee0faf1b286417080369d4747d1c520836ac41571
parent3e03a8ba8e1d6c9940a032992f4da2bfba391fdf
sfc-falcon: Use dev_get_drvdata where possible

Instead of using to_pci_dev + pci_get_drvdata,
use dev_get_drvdata to make code simpler.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/falcon/efx.c
drivers/net/ethernet/sfc/falcon/falcon_boards.c