]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check for nomodeset in i915_init() first
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Jul 2021 12:10:27 +0000 (14:10 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Jul 2021 14:45:57 +0000 (16:45 +0200)
commit2d725261f7d6aecc8a44a45776a95e01c395b6ae
treeea391973f1058ec63a8a6043d68d2a5cebb35ea7
parente2b35a43bc7cda63e812cb1444a5d5248201eddf
drm/i915: Check for nomodeset in i915_init() first

When modesetting (aka the full pci driver, which has nothing to do
with disable_display option, which just gives you the full pci driver
without the display driver) is disabled, we load nothing and do
nothing.

So move that check first, for a bit of orderliness. With Jason's
module init/exit table this now becomes trivial.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210727121037.2041102-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/i915/i915_pci.c