hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/mach-omap1/board-h3.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-omap1/board-h3.c
34 *
....@@ -8,10 +9,6 @@
89 * Copyright (C) 2001 RidgeRun, Inc.
910 * Author: RidgeRun, Inc.
1011 * Greg Lonnon (glonnon@ridgerun.com) or info@ridgerun.com
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License version 2 as
14
- * published by the Free Software Foundation.
1512 */
1613 #include <linux/gpio.h>
1714 #include <linux/types.h>
....@@ -23,7 +20,7 @@
2320 #include <linux/workqueue.h>
2421 #include <linux/i2c.h>
2522 #include <linux/mtd/mtd.h>
26
-#include <linux/mtd/rawnand.h>
23
+#include <linux/mtd/platnand.h>
2724 #include <linux/mtd/partitions.h>
2825 #include <linux/mtd/physmap.h>
2926 #include <linux/input.h>
....@@ -185,7 +182,7 @@
185182
186183 #define H3_NAND_RB_GPIO_PIN 10
187184
188
-static int nand_dev_ready(struct mtd_info *mtd)
185
+static int nand_dev_ready(struct nand_chip *chip)
189186 {
190187 return gpio_get_value(H3_NAND_RB_GPIO_PIN);
191188 }