[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 11 Nov 2010 01:15:51 +0100
From: Richard Weinberger <richard@....at>
To: lenb@...nel.org
Cc: linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
Richard Weinberger <richard@....at>
Subject: [PATCH] acpi: ENODEV needs errno.h
This patch fixes a build error when neither CONFIG_ACPI_VIDEO
nor CONFIG_ACPI_VIDEO_MODULE are enabled.
Signed-off-by: Richard Weinberger <richard@....at>
---
include/acpi/video.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/acpi/video.h b/include/acpi/video.h
index 551793c..7a0797b 100644
--- a/include/acpi/video.h
+++ b/include/acpi/video.h
@@ -16,6 +16,9 @@ extern void acpi_video_unregister(void);
extern int acpi_video_get_edid(struct acpi_device *device, int type,
int device_id, void **edid);
#else
+
+#include <linux/errno.h>
+
static inline int acpi_video_register(void) { return 0; }
static inline void acpi_video_unregister(void) { return; }
static inline int acpi_video_get_edid(struct acpi_device *device, int type,
--
1.6.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists