drm2: a few minor fixes after r280183
authoradrian <adrian@FreeBSD.org>
Sun, 4 Oct 2015 07:45:36 +0000 (07:45 +0000)
committeradrian <adrian@FreeBSD.org>
Sun, 4 Oct 2015 07:45:36 +0000 (07:45 +0000)
commit63f765030dc055a1eef961f7f5741217efb534a9
tree87c1942bf24a957c46e7c666f3ec5b23bca341f5
parent15bc65f144a8e7501d5b41594aa7436b28858d6f
drm2: a few minor fixes after r280183

* Remove obsolete drm_agp_*_memory() prototypes.
* Fix comment in drm_fops.c (outisde -> outside).
* Fix some formatting issues in drm_stub.c (spaces -> tabs).
* Add missing case statement (gen == 3) in intel_gpu_reset().
* Restore pci_enable_busmaster() call in the init path (fixes gpu hang on i945GM).
* Replace M_WAITOK with M_NOWAIT when the return value of malloc is checked (may be incorrect).

Submitted by: <s3erios@gmail.com>
Reviewed by: dumbbell
Approved by: dumbbell
Differential Revision: https://reviews.freebsd.org/D3413
sys/dev/drm2/drmP.h
sys/dev/drm2/drm_crtc.c
sys/dev/drm2/drm_fops.c
sys/dev/drm2/drm_pci.c
sys/dev/drm2/drm_stub.c
sys/dev/drm2/i915/i915_dma.c
sys/dev/drm2/i915/i915_drv.c
sys/dev/drm2/i915/intel_opregion.c