drm/bochs: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 10:11:04 +0000 (18:11 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 6 Aug 2019 07:20:58 +0000 (09:20 +0200)
commitc1233578a2b9db920ecd9b647797967ac68dfe46
treef2d102e770bd1a14380a3ea517f4b785b6e5a288
parentf6d2b63adb0a55e41ddbc0baa890c0c02858000d
drm/bochs: 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>
Link: http://patchwork.freedesktop.org/patch/msgid/20190723101103.30250-1-hslester96@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/bochs/bochs_drv.c