Skip to content

Commit 5de0b52

Browse files
zyziidedekind
authored andcommitted
mtd: gpmi: remove unneccessary header
The whole gpmi-nand driver has turned to pure devicetree supported. So the linux/mtd/gpmi-nand.h is not neccessary now. Just remove it, and move some macros to the gpmi-nand driver itself. Signed-off-by: Huang Shijie <shijie8@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
1 parent 18afbc5 commit 5de0b52

4 files changed

Lines changed: 6 additions & 71 deletions

File tree

‎drivers/mtd/nand/gpmi-nand/gpmi-lib.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* with this program; if not, write to the Free Software Foundation, Inc.,
1919
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2020
*/
21-
#include <linux/mtd/gpmi-nand.h>
2221
#include <linux/delay.h>
2322
#include <linux/clk.h>
2423

‎drivers/mtd/nand/gpmi-nand/gpmi-nand.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@
2525
#include <linux/slab.h>
2626
#include <linux/interrupt.h>
2727
#include <linux/module.h>
28-
#include <linux/mtd/gpmi-nand.h>
2928
#include <linux/mtd/partitions.h>
3029
#include <linux/pinctrl/consumer.h>
3130
#include <linux/of.h>
3231
#include <linux/of_device.h>
3332
#include <linux/of_mtd.h>
3433
#include "gpmi-nand.h"
3534

35+
/* Resource names for the GPMI NAND driver. */
36+
#define GPMI_NAND_GPMI_REGS_ADDR_RES_NAME "gpmi-nand"
37+
#define GPMI_NAND_BCH_REGS_ADDR_RES_NAME "bch"
38+
#define GPMI_NAND_BCH_INTERRUPT_RES_NAME "bch"
39+
#define GPMI_NAND_DMA_INTERRUPT_RES_NAME "gpmi-dma"
40+
3641
/* add our owner bbt descriptor */
3742
static uint8_t scan_ff_pattern[] = { 0xff };
3843
static struct nand_bbt_descr gpmi_bbt_descr = {

‎drivers/mtd/nand/gpmi-nand/gpmi-nand.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ struct gpmi_nand_data {
130130
/* System Interface */
131131
struct device *dev;
132132
struct platform_device *pdev;
133-
struct gpmi_nand_platform_data *pdata;
134133

135134
/* Resources */
136135
struct resources resources;

‎include/linux/mtd/gpmi-nand.h‎

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)