diff options
| author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-12-01 06:03:02 -0500 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-08 13:46:13 -0500 |
| commit | 7326ffef788dd5823c820a6ac5b5e864e8a486a0 (patch) | |
| tree | fafc98e1e9b4b93d3fbec5c08777678137ced782 /arch/sh/boards | |
| parent | 41849d49d7d5307d7399314b59fb16d1c39ce0f0 (diff) | |
sh: nand: make use of mtd_to_nand() where appropriate
mtd_to_nand() was recently introduced to avoid direct accesses to the
mtd->priv field. Update all SH specific implementations to use this
helper.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'arch/sh/boards')
| -rw-r--r-- | arch/sh/boards/mach-migor/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 29b7c0dcfc51..8673f91ebd41 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c | |||
| @@ -167,7 +167,7 @@ static struct mtd_partition migor_nand_flash_partitions[] = { | |||
| 167 | static void migor_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, | 167 | static void migor_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, |
| 168 | unsigned int ctrl) | 168 | unsigned int ctrl) |
| 169 | { | 169 | { |
| 170 | struct nand_chip *chip = mtd->priv; | 170 | struct nand_chip *chip = mtd_to_nand(mtd); |
| 171 | 171 | ||
| 172 | if (cmd == NAND_CMD_NONE) | 172 | if (cmd == NAND_CMD_NONE) |
| 173 | return; | 173 | return; |
