]> git.baikalelectronics.ru Git - kernel.git/commit
vgaarb: Stop complaining about absent devices
authorThierry Reding <treding@nvidia.com>
Wed, 12 Aug 2015 14:32:05 +0000 (16:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Aug 2015 15:11:57 +0000 (17:11 +0200)
commitba2090b95ad76bd3676ec0288d93cb40f8c44254
tree5af8630beafa0287c548acd70c19de46ccc2657d
parentf5074520bd3959cbc133bb779726f05d6e2dc517
vgaarb: Stop complaining about absent devices

Some setups do not register a default VGA device, in which case the VGA
arbiter will still complain about the (non-existent) PCI device being a
non-VGA device.

Fix this by making the error message conditional on a default VGA device
having been set up. Note that the easy route of erroring out early isn't
going to work because otherwise priv->target won't be properly updated.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/vga/vgaarb.c