[PATCH] random: Add missing linux/device.h include

From: Thierry Reding
Date: Wed Nov 06 2013 - 08:06:58 EST


Commit f0ed2b943a53 (random: use device attach events for entropy) uses
a member of struct device, which isn't always available and therefore
causes the xcep_defconfig build to break on ARM.

Explicitly including the linux/device.h header fixes this issue.

Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
---
drivers/char/random.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index 26649ba..4f172f9 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -257,6 +257,7 @@
#include <linux/kmemcheck.h>
#include <linux/irq.h>
#include <linux/workqueue.h>
+#include <linux/device.h>

#include <asm/processor.h>
#include <asm/uaccess.h>
--
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/