apple-gmux: Fix build breakage if !CONFIG_ACPI
authorLukas Wunner <lukas@wunner.de>
Wed, 10 Feb 2016 13:17:41 +0000 (14:17 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Feb 2016 08:23:59 +0000 (09:23 +0100)
commitb7172119714781d15128cd1ae029bd028b0bf37a
treedfd7d402b2b587d8ed485ad04dec02b143e91aa9
parent3c5b267314ff00b4a9536769cc1aafc71384e559
apple-gmux: Fix build breakage if !CONFIG_ACPI

The DRM drivers i915, nouveau and radeon may be compiled with
CONFIG_ACPI not set, in which case acpi_dev_present() is undefined.

Add a no-op stub for apple_gmux_present() which is used if
CONFIG_APPLE_GMUX is not enabled to avoid build breakage.
(CONFIG_APPLE_GMUX depends on CONFIG_ACPI.)

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160210131741.GA15492@wunner.de
include/linux/apple-gmux.h