net: marvell: Use dev_get_drvdata where possible
authorChuhong Yuan <hslester96@gmail.com>
Wed, 24 Jul 2019 11:26:34 +0000 (19:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 18:44:46 +0000 (11:44 -0700)
commit7bdb9234952b08b1f86927eab4adbf6609d4444a
tree68322831f54f93903eec5dafc5a359f5d478a6c7
parentf876a784292bd6f787035db73e2c2f0556e64b25
net: marvell: 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/marvell/skge.c
drivers/net/ethernet/marvell/sky2.c