Chris Wilson 6098909cf2 drm: Avoid NULL dereference of drm_device.dev
For a virtual device, drm_device.dev is NULL, so becareful not to
dereference it unconditionally in core code such as drm_dev_register().

Fixes: 75f6dfe3e652 ("drm: Deduplicate driver initialization message")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161230141639.10487-1-chris@chris-wilson.co.uk
2016-12-30 15:29:44 +01:00
..
2016-11-16 20:46:32 +01:00
2016-11-17 13:53:02 -08:00
2016-10-21 21:40:29 +02:00
2016-09-27 12:33:47 +02:00
2016-10-07 21:23:40 -07:00
2016-11-05 10:52:29 -07:00
2016-11-18 16:13:41 -07:00
2016-11-16 12:39:57 -07:00
2016-10-07 21:23:40 -07:00
2016-12-01 16:44:42 -08:00
2016-11-11 17:02:01 -08:00
2016-09-20 20:57:12 +10:00
2016-11-29 16:43:24 +01:00
2016-10-06 17:03:49 -07:00
2016-11-29 11:15:37 -08:00
2016-10-14 11:07:42 -07:00
2016-11-18 15:49:31 +01:00
2016-11-01 09:04:04 -06:00
2016-09-05 08:04:07 +02:00
2016-11-18 16:13:41 -07:00
2016-10-24 19:52:24 -07:00