hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/arm/mach-omap1/board-fsample.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-omap1/board-fsample.c
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Original OMAP730 support by Jean Pihet <j-pihet@ti.com>
78 * Updated for 2.6 by Kevin Hilman <kjh@hilman.org>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
129 */
1310 #include <linux/gpio.h>
1411 #include <linux/kernel.h>
....@@ -16,8 +13,7 @@
1613 #include <linux/platform_device.h>
1714 #include <linux/delay.h>
1815 #include <linux/mtd/mtd.h>
19
-#include <linux/mtd/rawnand.h>
20
-#include <linux/mtd/partitions.h>
16
+#include <linux/mtd/platnand.h>
2117 #include <linux/mtd/physmap.h>
2218 #include <linux/input.h>
2319 #include <linux/smc91x.h>
....@@ -186,7 +182,7 @@
186182
187183 #define FSAMPLE_NAND_RB_GPIO_PIN 62
188184
189
-static int nand_dev_ready(struct mtd_info *mtd)
185
+static int nand_dev_ready(struct nand_chip *chip)
190186 {
191187 return gpio_get_value(FSAMPLE_NAND_RB_GPIO_PIN);
192188 }