drm/hisilicon: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 10:38:53 +0000 (18:38 +0800)
committerXinliang Liu <z.liuxinliang@hisilicon.com>
Mon, 26 Aug 2019 07:21:33 +0000 (15:21 +0800)
commitbda4a850f7dc6dee141a6bdba85976c8cf686626
tree1ed5564d8af6cff2c71c7ea4da611b82605a16ad
parent4f1a7007d688a792b6b929220d7f68a25eb493be
drm/hisilicon: 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: Xinliang Liu <z.liuxinliang@hisilicon.com>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c