net: jme: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 14:16:42 +0000 (22:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:02:42 +0000 (13:02 -0700)
commitc9b6c56d52bea8adbf10ae0b9e4a7b88017c6f27
tree740afb77d10e766c7bcb52b55a23c9e2c84a71b0
parent5daab287c67d8008a01e4a0db8bcb92b386b8adc
net: jme: Use dev_get_drvdata

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/jme.c