drivers/char: Add module.h to those who were using it implicitly
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 3 Jul 2011 17:35:48 +0000 (13:35 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:31:40 +0000 (19:31 -0400)
A pending cleanup will mean that module.h won't be implicitly
everywhere anymore.  Make sure the modular drivers in char are
actually calling out for <module.h> explicitly in advance.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/hw_random/virtio-rng.c
drivers/char/ps3flash.c
drivers/char/virtio_console.c

index 75f1cbd61c174b36f1e637b59d203980e61c8cac..fd699ccecf5b83efb694734ef5a137c8d20a2217 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/spinlock.h>
 #include <linux/virtio.h>
 #include <linux/virtio_rng.h>
+#include <linux/module.h>
 
 static struct virtqueue *vq;
 static unsigned int data_avail;
index d0c57c2e29094eb6caba946789295893d4befdbc..6abdde4da2b7834991a8e4e0b3feb52e0e054993 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/miscdevice.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
+#include <linux/module.h>
 
 #include <asm/lv1call.h>
 #include <asm/ps3stor.h>
index fb68b1295373e7287aa92a577b6aa937ba7ffe09..97044319bc7b71002578a9693b1ccaffe9c9249c 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/virtio_console.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>
+#include <linux/module.h>
 #include "../tty/hvc/hvc_console.h"
 
 /*