Commit 56f074d8 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: restrict hotplug error message



We should print the error only when we are hotplugged and crash
basically all userspace applications.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarEmily Deng <Emily.Deng@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4a246528
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1066,7 +1066,10 @@ amdgpu_pci_remove(struct pci_dev *pdev)
{
	struct drm_device *dev = pci_get_drvdata(pdev);

	DRM_ERROR("Device removal is currently not supported outside of fbcon\n");
#ifdef MODULE
	if (THIS_MODULE->state != MODULE_STATE_GOING)
#endif
		DRM_ERROR("Hotplug removal is not supported\n");
	drm_dev_unplug(dev);
	drm_dev_put(dev);
	pci_disable_device(pdev);