drm/bochs: Fix missing pci_disable_device() on error in bochs_pci_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 15 Jul 2021 13:28:45 +0000 (21:28 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 20 Jul 2021 09:19:57 +0000 (11:19 +0200)
commitb46998d81a1d2c961d570397e87a83ef365d2edf
treec222d410a00a1512258cf3193633e6a50d3b2807
parentf34bf652d680cf65783e7c57d61c94ee87f092bd
drm/bochs: Fix missing pci_disable_device() on error in bochs_pci_probe()

Replace pci_enable_device() with pcim_enable_device(),
pci_disable_device() will be called in release automatically.

v3:
  reformat commit message
  update for move to tiny/
v2:
  use pcim_enable_device()

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210715132845.2415619-1-yangyingliang@huawei.com
drivers/gpu/drm/tiny/bochs.c