]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/nouveau: make vga_switcheroo code depend on VGA_SWITCHEROO
authorJeff Mahoney <jeffm@suse.com>
Tue, 5 Nov 2013 05:54:52 +0000 (16:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:54:52 +0000 (16:54 +1100)
commit265ccbb6935f479f87d27399cea4ddc098db2cbf
treebf8cc75a144a99c8cce5c0a105749ca902d4e8e3
parent4208603517b377876103f69bd4e8a11c6e3354d5
drm/nouveau: make vga_switcheroo code depend on VGA_SWITCHEROO

Commit 8116188fdef594 ("nouveau/acpi: hook up to the MXM method for mux
switching.") broke the build on non-x86 architectures due to the new
dependency on MXM and MXM being an x86 platform driver.

It built previously since the vga switcheroo registration routines were
zereod out on !X86.  The code was built in but unused.

This patch makes all of the DSM code depend on CONFIG_VGA_SWITCHEROO,
allowing it to build on non-x86 and shrinking the module size as well.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/gpu/drm/nouveau/nouveau_acpi.c