.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mach-omap1/board-h3.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
8 | 9 | * Copyright (C) 2001 RidgeRun, Inc. |
---|
9 | 10 | * Author: RidgeRun, Inc. |
---|
10 | 11 | * 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. |
---|
15 | 12 | */ |
---|
16 | 13 | #include <linux/gpio.h> |
---|
17 | 14 | #include <linux/types.h> |
---|
.. | .. |
---|
23 | 20 | #include <linux/workqueue.h> |
---|
24 | 21 | #include <linux/i2c.h> |
---|
25 | 22 | #include <linux/mtd/mtd.h> |
---|
26 | | -#include <linux/mtd/rawnand.h> |
---|
| 23 | +#include <linux/mtd/platnand.h> |
---|
27 | 24 | #include <linux/mtd/partitions.h> |
---|
28 | 25 | #include <linux/mtd/physmap.h> |
---|
29 | 26 | #include <linux/input.h> |
---|
.. | .. |
---|
185 | 182 | |
---|
186 | 183 | #define H3_NAND_RB_GPIO_PIN 10 |
---|
187 | 184 | |
---|
188 | | -static int nand_dev_ready(struct mtd_info *mtd) |
---|
| 185 | +static int nand_dev_ready(struct nand_chip *chip) |
---|
189 | 186 | { |
---|
190 | 187 | return gpio_get_value(H3_NAND_RB_GPIO_PIN); |
---|
191 | 188 | } |
---|