hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/arm/mach-omap1/board-nand.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-omap1/board-nand.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/kernel.h>
1714 #include <linux/io.h>
....@@ -20,9 +17,8 @@
2017
2118 #include "common.h"
2219
23
-void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
20
+void omap1_nand_cmd_ctl(struct nand_chip *this, int cmd, unsigned int ctrl)
2421 {
25
- struct nand_chip *this = mtd_to_nand(mtd);
2622 unsigned long mask;
2723
2824 if (cmd == NAND_CMD_NONE)
....@@ -32,6 +28,6 @@
3228 if (ctrl & NAND_ALE)
3329 mask |= 0x04;
3430
35
- writeb(cmd, this->IO_ADDR_W + mask);
31
+ writeb(cmd, this->legacy.IO_ADDR_W + mask);
3632 }
3733