linux/drivers/gpu/vga
Arnd Bergmann ed2ab35ef1 vgaarb: use valid dev pointer in vgaarb_info()
We now pass the device to the debug messages, but on non-x86,
this is an invalid pointer in vga_arb_device_init:

drivers/gpu/vga/vgaarb.c: In function 'vga_arb_device_init':
drivers/gpu/vga/vgaarb.c:1467:4: error: 'dev' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This moves the initialization of the dev pointer outside of the
architecture #ifdef.

Fixes: a75d68f621 ("vgaarb: Use dev_printk() when possible")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161122143445.1896558-1-arnd@arndb.de
2016-11-22 16:40:35 +01:00
..
Kconfig vga: compile fix, disable vga for s390 2012-11-30 17:47:28 +01:00
Makefile
vga_switcheroo.c vga_switcheroo: Sphinxify docs 2016-07-12 16:14:36 +02:00
vgaarb.c vgaarb: use valid dev pointer in vgaarb_info() 2016-11-22 16:40:35 +01:00