net: 3com: 3c59x: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 13:18:44 +0000 (21:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:02:41 +0000 (13:02 -0700)
commit9f293c9af856bc6b404759eedb9bc6ad8d9cf631
tree545603a712068768f9e05ee3778b40cc66cb65b1
parentc349c0a28326c98ca145b59e0f7ba69e4eef3b80
net: 3com: 3c59x: 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/3com/3c59x.c