From: Dave Airlie Date: Tue, 2 Mar 2010 23:20:25 +0000 (+1000) Subject: drm/nouveau: fix *staging* driver build with switcheroo off. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f41a7f11c4bb93c41715008a693cadaee5efd82;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git drm/nouveau: fix *staging* driver build with switcheroo off. This driver is in *staging*. Fix the build with the switcheroo off. Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index f5b3cbe7dc80..5f8d987af363 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h @@ -852,7 +852,7 @@ extern int nouveau_dma_init(struct nouveau_channel *); extern int nouveau_dma_wait(struct nouveau_channel *, int slots, int size); /* nouveau_acpi.c */ -#if defined(CONFIG_VGA_SWITCHEROO) +#if defined(CONFIG_ACPI) void nouveau_register_dsm_handler(void); void nouveau_unregister_dsm_handler(void); #else