| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/arch/arm/mach-omap1/board-h2.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 13 | 14 | * |
|---|
| 14 | 15 | * H2 specific changes and cleanup |
|---|
| 15 | 16 | * 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. |
|---|
| 20 | 17 | */ |
|---|
| 21 | 18 | #include <linux/gpio.h> |
|---|
| 22 | 19 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 24 | 21 | #include <linux/delay.h> |
|---|
| 25 | 22 | #include <linux/i2c.h> |
|---|
| 26 | 23 | #include <linux/mtd/mtd.h> |
|---|
| 27 | | -#include <linux/mtd/rawnand.h> |
|---|
| 28 | | -#include <linux/mtd/partitions.h> |
|---|
| 24 | +#include <linux/mtd/platnand.h> |
|---|
| 29 | 25 | #include <linux/mtd/physmap.h> |
|---|
| 30 | 26 | #include <linux/input.h> |
|---|
| 31 | 27 | #include <linux/mfd/tps65010.h> |
|---|
| .. | .. |
|---|
| 182 | 178 | |
|---|
| 183 | 179 | #define H2_NAND_RB_GPIO_PIN 62 |
|---|
| 184 | 180 | |
|---|
| 185 | | -static int h2_nand_dev_ready(struct mtd_info *mtd) |
|---|
| 181 | +static int h2_nand_dev_ready(struct nand_chip *chip) |
|---|
| 186 | 182 | { |
|---|
| 187 | 183 | return gpio_get_value(H2_NAND_RB_GPIO_PIN); |
|---|
| 188 | 184 | } |
|---|