OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 10... | Line 10... | |||
10 | * This program is free software; you can redistribute it and/or modify it |
10 | * This program is free software; you can redistribute it and/or modify it |
|
11 | * under the terms of the GNU General Public License version 2 as published |
11 | * under the terms of the GNU General Public License version 2 as published |
|
12 | * by the Free Software Foundation. |
12 | * by the Free Software Foundation. |
|
13 | */ |
13 | */ |
|
Line 14... | Line -... | |||
14 | |
- | ||
15 | #include <linux/version.h> |
14 | |
|
16 | #include <linux/kernel.h> |
15 | #include <linux/kernel.h> |
|
17 | #include <linux/module.h> |
16 | #include <linux/module.h> |
|
18 | #include <linux/init.h> |
- | ||
19 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) |
17 | #include <linux/init.h> |
|
20 | #include <linux/mtd/nand.h> |
- | ||
21 | #else |
- | ||
22 | #include <linux/mtd/rawnand.h> |
- | ||
23 | #endif |
18 | #include <linux/mtd/nand.h> |
|
24 | #include <linux/mtd/mtd.h> |
19 | #include <linux/mtd/mtd.h> |
|
25 | #include <linux/mtd/partitions.h> |
20 | #include <linux/mtd/partitions.h> |
|
26 | #include <linux/platform_device.h> |
21 | #include <linux/platform_device.h> |
|
27 | #include <linux/delay.h> |
22 | #include <linux/delay.h> |
|
28 | #include <linux/io.h> |
23 | #include <linux/io.h> |
|
29 | #include <linux/gpio.h> |
24 | #include <linux/gpio.h> |
|
- | 25 | #include <linux/slab.h> |
||
Line 30... | Line 26... | |||
30 | #include <linux/slab.h> |
26 | #include <linux/version.h> |
|
31 | |
27 | |
|
Line 32... | Line 28... | |||
32 | #include <asm/mach-ath79/ath79.h> |
28 | #include <asm/mach-ath79/ath79.h> |