| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright © 2009 - Maxim Levitsky |
|---|
| 3 | 4 | * driver for Ricoh xD readers |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | #include <linux/pci.h> |
|---|
| .. | .. |
|---|
| 107 | 104 | #define DMA_MEMORY 1 |
|---|
| 108 | 105 | |
|---|
| 109 | 106 | struct r852_device { |
|---|
| 107 | + struct nand_controller controller; |
|---|
| 110 | 108 | void __iomem *mmio; /* mmio */ |
|---|
| 111 | 109 | struct nand_chip *chip; /* nand chip backpointer */ |
|---|
| 112 | 110 | struct pci_dev *pci_dev; /* pci backpointer */ |
|---|
| .. | .. |
|---|
| 129 | 127 | /* card status area */ |
|---|
| 130 | 128 | struct delayed_work card_detect_work; |
|---|
| 131 | 129 | struct workqueue_struct *card_workqueue; |
|---|
| 132 | | - int card_registred; /* card registered with mtd */ |
|---|
| 130 | + int card_registered; /* card registered with mtd */ |
|---|
| 133 | 131 | int card_detected; /* card detected in slot */ |
|---|
| 134 | 132 | int card_unstable; /* whenever the card is inserted, |
|---|
| 135 | 133 | is not known yet */ |
|---|