mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-02-10 11:22:43 +01:00
Fix conditional guard against amdgpu module
This commit is contained in:
@@ -37,7 +37,7 @@ int amd_common_pre_reset(struct vendor_reset_dev *dev)
|
||||
pdev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
|
||||
|
||||
/* do not try to reset the card under amdgpu, it will cause problems */
|
||||
if (pdev->dev.driver && strcmp(pdev->dev.driver->name, "amdgpu"))
|
||||
if (pdev->driver && !strcmp(pdev->driver->name, "amdgpu"))
|
||||
return -ENOTTY;
|
||||
|
||||
priv = kzalloc(sizeof *priv, GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user