aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2014-04-23 11:55:51 +0100
committerJon Medhurst <tixy@linaro.org>2014-04-23 13:06:53 +0100
commit53acbbf5c98ac00b8eda2072cb685c4e63f5fbb5 (patch)
treef58c727960befe58e6f8a768560212287c090f87
parent2cf5ad99dd2815b59e4027e4f675f6b9ec0d50e4 (diff)
gator: Stub out-driver on Linux 3.15tracking-gator-llct-20140423.0
Tracepoint API changes in Linux 3.15 completely break gator, so create a dummy stub driver to keep build and packaging jobs happy. Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r--drivers/gator/Makefile8
-rw-r--r--drivers/gator/gator_stub.c26
2 files changed, 34 insertions, 0 deletions
diff --git a/drivers/gator/Makefile b/drivers/gator/Makefile
index 3dc9d059a4b4..d666b3145a9c 100644
--- a/drivers/gator/Makefile
+++ b/drivers/gator/Makefile
@@ -6,6 +6,12 @@ ifneq ($(KERNELRELEASE),)
CONFIG_GATOR ?= m
obj-$(CONFIG_GATOR) := gator.o
+ifeq ($(shell echo "$(VERSION)>=3 && $(PATCHLEVEL)>=15" | bc), 1)
+# Gator doesn't work on this Linux version so just create a stub version
+# to keep builds and packaging jobs happy
+gator-y := gator_stub.o
+else
+
gator-y := gator_main.o \
gator_events_irq.o \
gator_events_sched.o \
@@ -60,6 +66,8 @@ gator-$(CONFIG_ARM) += gator_events_armv6.o \
gator-$(CONFIG_ARM64) += gator_events_ccn-504.o
+endif
+
else
all:
diff --git a/drivers/gator/gator_stub.c b/drivers/gator/gator_stub.c
new file mode 100644
index 000000000000..aec16e4652c4
--- /dev/null
+++ b/drivers/gator/gator_stub.c
@@ -0,0 +1,26 @@
+/**
+ * Copyright (C) Linaro Limited 2014.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#include <linux/module.h>
+
+static int __init gator_module_init(void)
+{
+ return 0;
+}
+
+static void __exit gator_module_exit(void)
+{
+}
+
+module_init(gator_module_init);
+module_exit(gator_module_exit);
+
+MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("Dummy stub for Gator system profiler");
+MODULE_VERSION("0");