forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-omap1/board-h2.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-omap1/board-h2.c
34 *
....@@ -13,10 +14,6 @@
1314 *
1415 * H2 specific changes and cleanup
1516 * Copyright (C) 2004 Nokia Corporation by Imre Deak <imre.deak@nokia.com>
16
- *
17
- * This program is free software; you can redistribute it and/or modify
18
- * it under the terms of the GNU General Public License version 2 as
19
- * published by the Free Software Foundation.
2017 */
2118 #include <linux/gpio.h>
2219 #include <linux/kernel.h>
....@@ -24,8 +21,7 @@
2421 #include <linux/delay.h>
2522 #include <linux/i2c.h>
2623 #include <linux/mtd/mtd.h>
27
-#include <linux/mtd/rawnand.h>
28
-#include <linux/mtd/partitions.h>
24
+#include <linux/mtd/platnand.h>
2925 #include <linux/mtd/physmap.h>
3026 #include <linux/input.h>
3127 #include <linux/mfd/tps65010.h>
....@@ -182,7 +178,7 @@
182178
183179 #define H2_NAND_RB_GPIO_PIN 62
184180
185
-static int h2_nand_dev_ready(struct mtd_info *mtd)
181
+static int h2_nand_dev_ready(struct nand_chip *chip)
186182 {
187183 return gpio_get_value(H2_NAND_RB_GPIO_PIN);
188184 }