]> git.baikalelectronics.ru Git - kernel.git/commit
drm/hisilicon: Use pcim_enable_device()
authorTian Tao <tiantao6@hisilicon.com>
Mon, 21 Dec 2020 00:45:22 +0000 (08:45 +0800)
committerTian Tao <tiantao6@hisilicon.com>
Wed, 23 Dec 2020 03:30:44 +0000 (22:30 -0500)
commit5552f846de645a890d059e21554ae12b394dd898
treea077b3ed3f67af74c1b1c39c7f808e651b27c6be
parent0f29c5dc086f039a9c108c179123bcec3847ceb2
drm/hisilicon: Use pcim_enable_device()

Using the managed function simplifies the error handling. After
unloading the driver, the PCI device should now get disabled as
well.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1608511522-3100-1-git-send-email-tiantao6@hisilicon.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c