]> 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>
Wed, 19 Jun 2013 00:05:25 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:40 +0000 (17:12 +1000)
commit4b7e7e81e95262d9abf56c0a07d0bebcb337b05b
tree67dcb87fd4c410b493b292e3c22e7c23d6976bb6
parent0b97e9faac1d943a49c73d0ae8214dd39a38e683
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