]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nouveau: fix build eror when VGA_SWITCHEROO is not enabled
authorRandy Dunlap <rdunlap@infradead.org>
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)
commit00785f2c596aeac68ac94783fb3007763e26abab
treef58abfa232fc7d5cac11ab358721caf4f80e3079
parent265ccbb6935f479f87d27399cea4ddc098db2cbf
nouveau: fix build eror when VGA_SWITCHEROO is not enabled

Fix nouveau build error on x86, when ACPI is enabled but VGA_SWITCHEROO is
not enabled, by providing a stub function.

drivers/built-in.o: In function `nouveau_pmops_runtime_suspend':
nouveau_drm.c:(.text+0x3aac89): undefined reference to `nouveau_switcheroo_optimus_dsm'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: 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