mtd: Add module.h to drivers users that were implicitly using it.
We are cleaning up the implicit presence of module.h that these drivers are taking advantage of. Fix them in advance of the cleanup operation. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
parent
f3bcc0179a
commit
a0e5cc581b
|
@ -27,6 +27,7 @@
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/bootmem.h>
|
#include <linux/bootmem.h>
|
||||||
#include <linux/magic.h>
|
#include <linux/magic.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
#define AR7_PARTS 4
|
#define AR7_PARTS 4
|
||||||
#define ROOT_OFFSET 0xe0000
|
#define ROOT_OFFSET 0xe0000
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/bootmem.h>
|
#include <linux/bootmem.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
/* error message prefix */
|
/* error message prefix */
|
||||||
#define ERRP "mtd: "
|
#define ERRP "mtd: "
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <linux/mtd/pfow.h>
|
#include <linux/mtd/pfow.h>
|
||||||
#include <linux/mtd/qinfo.h>
|
#include <linux/mtd/qinfo.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
|
static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
|
||||||
size_t *retlen, u_char *buf);
|
size_t *retlen, u_char *buf);
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/blktrans.h>
|
#include <linux/mtd/blktrans.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
static int mtdblock_readsect(struct mtd_blktrans_dev *dev,
|
static int mtdblock_readsect(struct mtd_blktrans_dev *dev,
|
||||||
unsigned long block, char *buf)
|
unsigned long block, char *buf)
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
|
#include <linux/module.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
#define CAFE_NAND_CTRL1 0x00
|
#define CAFE_NAND_CTRL1 0x00
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <linux/mtd/doc2000.h>
|
#include <linux/mtd/doc2000.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/inftl.h>
|
#include <linux/mtd/inftl.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
/* Where to look for the devices? */
|
/* Where to look for the devices? */
|
||||||
#ifndef CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS
|
#ifndef CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
#include <linux/module.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/jiffies.h>
|
#include <linux/jiffies.h>
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
|
#include <linux/module.h>
|
||||||
#include "sm_common.h"
|
#include "sm_common.h"
|
||||||
|
|
||||||
static struct nand_ecclayout nand_oob_sm = {
|
static struct nand_ecclayout nand_oob_sm = {
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
struct fis_image_desc {
|
struct fis_image_desc {
|
||||||
unsigned char name[16]; // Null terminated name
|
unsigned char name[16]; // Null terminated name
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <linux/vmalloc.h>
|
#include <linux/vmalloc.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/jiffies.h>
|
#include <linux/jiffies.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue