mirror of
https://github.com/gnif/vendor-reset
synced 2024-12-18 04:26:10 +00:00
[amd] common: add missing device dereference.
This commit is contained in:
parent
9917242b8d
commit
0dab58276f
@ -1,5 +1,5 @@
|
|||||||
PACKAGE_NAME="vendor-reset"
|
PACKAGE_NAME="vendor-reset"
|
||||||
PACKAGE_VERSION="0.0.12"
|
PACKAGE_VERSION="0.0.13"
|
||||||
BUILT_MODULE_NAME[0]="${PACKAGE_NAME}"
|
BUILT_MODULE_NAME[0]="${PACKAGE_NAME}"
|
||||||
MAKE[0]="make KDIR=${kernel_source_dir}"
|
MAKE[0]="make KDIR=${kernel_source_dir}"
|
||||||
CLEAN="make KDIR=${kernel_source_dir} clean"
|
CLEAN="make KDIR=${kernel_source_dir} clean"
|
||||||
|
@ -42,7 +42,7 @@ int amd_common_pre_reset(struct vendor_reset_dev *dev)
|
|||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
/* disable bus reset for the card, seems to be an issue with all of them */
|
/* disable bus reset for the card, seems to be an issue with all of them */
|
||||||
dev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
|
dev->pdev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
|
||||||
|
|
||||||
/* do not try to reset the card under amdgpu, it will cause problems */
|
/* do not try to reset the card under amdgpu, it will cause problems */
|
||||||
if (pdev->driver && !strcmp(pdev->driver->name, "amdgpu"))
|
if (pdev->driver && !strcmp(pdev->driver->name, "amdgpu"))
|
||||||
|
Loading…
Reference in New Issue
Block a user