.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mach-omap1/board-fsample.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Original OMAP730 support by Jean Pihet <j-pihet@ti.com> |
---|
7 | 8 | * 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. |
---|
12 | 9 | */ |
---|
13 | 10 | #include <linux/gpio.h> |
---|
14 | 11 | #include <linux/kernel.h> |
---|
.. | .. |
---|
16 | 13 | #include <linux/platform_device.h> |
---|
17 | 14 | #include <linux/delay.h> |
---|
18 | 15 | #include <linux/mtd/mtd.h> |
---|
19 | | -#include <linux/mtd/rawnand.h> |
---|
20 | | -#include <linux/mtd/partitions.h> |
---|
| 16 | +#include <linux/mtd/platnand.h> |
---|
21 | 17 | #include <linux/mtd/physmap.h> |
---|
22 | 18 | #include <linux/input.h> |
---|
23 | 19 | #include <linux/smc91x.h> |
---|
.. | .. |
---|
186 | 182 | |
---|
187 | 183 | #define FSAMPLE_NAND_RB_GPIO_PIN 62 |
---|
188 | 184 | |
---|
189 | | -static int nand_dev_ready(struct mtd_info *mtd) |
---|
| 185 | +static int nand_dev_ready(struct nand_chip *chip) |
---|
190 | 186 | { |
---|
191 | 187 | return gpio_get_value(FSAMPLE_NAND_RB_GPIO_PIN); |
---|
192 | 188 | } |
---|