summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-12-08 16:08:08 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2014-01-19 21:55:28 +0100
commit88e5a8085d6f2a19b9d8ba5a973c7f2adfd8c781 (patch)
tree0c0a7060e5731c67399929abab2da44bd7b9b385
parente604600f9e5d5e2e5b5005d6edebe087ebb9b4b0 (diff)
backports: add missing include for linux/of.h
Upstream commit: a9081420811be2a9c7386b4693c5cf1b93b3ae23 This fixes a compile error with some config options. Closes bug: https://bugzilla.kernel.org/show_bug.cgi?id=66601 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Reported-by: Richard Röjfors <richard.rojfors@gmail.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r--backport/compat/compat-3.7.c1
-rw-r--r--backport/compat/compat-3.8.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/backport/compat/compat-3.7.c b/backport/compat/compat-3.7.c
index b21b8acf..2d739f93 100644
--- a/backport/compat/compat-3.7.c
+++ b/backport/compat/compat-3.7.c
@@ -12,6 +12,7 @@
#include <linux/export.h>
#include <linux/pci.h>
#include <linux/pci_regs.h>
+#include <linux/of.h>
bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
unsigned long delay)
diff --git a/backport/compat/compat-3.8.c b/backport/compat/compat-3.8.c
index d43d3862..d0a2986d 100644
--- a/backport/compat/compat-3.8.c
+++ b/backport/compat/compat-3.8.c
@@ -16,6 +16,7 @@
#include <linux/module.h>
#include "hid-ids.h"
#include <linux/netdevice.h>
+#include <linux/of.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,8))
void netdev_set_default_ethtool_ops(struct net_device *dev,