diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 10:25:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 10:25:43 -0400 |
commit | 05ec7dd8dd5aa42c22a49682e4a51cadd4166b7e (patch) | |
tree | 6370b43c0d8f324aa7421bbb5a647aa04ab5d747 /drivers/mtd/nand/nomadik_nand.c | |
parent | c316ba3b518bc35ce5aef5421135220389f4eb98 (diff) | |
parent | 8046112818b70329e930b1d4557ef0876c1ad2bb (diff) |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (154 commits)
mtd: cfi_cmdset_0002: use AMD standard command-set with Winbond flash chips
mtd: cfi_cmdset_0002: Fix MODULE_ALIAS and linkage for new 0701 commandset ID
mtd: mxc_nand: Remove duplicate NAND_CMD_RESET case value
mtd: update gfp/slab.h includes
jffs2: Stop triggering block erases from jffs2_write_super()
jffs2: Rename jffs2_erase_pending_trigger() to jffs2_dirty_trigger()
jffs2: Use jffs2_garbage_collect_trigger() to trigger pending erases
jffs2: Require jffs2_garbage_collect_trigger() to be called with lock held
jffs2: Wake GC thread when there are blocks to be erased
jffs2: Erase pending blocks in GC pass, avoid invalid -EIO return
jffs2: Add 'work_done' return value from jffs2_erase_pending_blocks()
mtd: mtdchar: Do not corrupt backing device of device node inode
mtd/maps/pcmciamtd: Fix printk format for ssize_t in debug messages
drivers/mtd: Use kmemdup
mtd: cfi_cmdset_0002: Fix argument order in bootloc warning
mtd: nand: add Toshiba TC58NVG0 device ID
pcmciamtd: add another ID
pcmciamtd: coding style cleanups
pcmciamtd: fixing obvious errors
mtd: chips: add SST39WF160x NOR-flashes
...
Trivial conflicts due to dev_node removal in drivers/mtd/maps/pcmciamtd.c
Diffstat (limited to 'drivers/mtd/nand/nomadik_nand.c')
-rw-r--r-- | drivers/mtd/nand/nomadik_nand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nomadik_nand.c b/drivers/mtd/nand/nomadik_nand.c index 1f6f741af5da..8c0b69375224 100644 --- a/drivers/mtd/nand/nomadik_nand.c +++ b/drivers/mtd/nand/nomadik_nand.c | |||
@@ -105,21 +105,21 @@ static int nomadik_nand_probe(struct platform_device *pdev) | |||
105 | ret = -EIO; | 105 | ret = -EIO; |
106 | goto err_unmap; | 106 | goto err_unmap; |
107 | } | 107 | } |
108 | host->addr_va = ioremap(res->start, res->end - res->start + 1); | 108 | host->addr_va = ioremap(res->start, resource_size(res)); |
109 | 109 | ||
110 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_data"); | 110 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_data"); |
111 | if (!res) { | 111 | if (!res) { |
112 | ret = -EIO; | 112 | ret = -EIO; |
113 | goto err_unmap; | 113 | goto err_unmap; |
114 | } | 114 | } |
115 | host->data_va = ioremap(res->start, res->end - res->start + 1); | 115 | host->data_va = ioremap(res->start, resource_size(res)); |
116 | 116 | ||
117 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_cmd"); | 117 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_cmd"); |
118 | if (!res) { | 118 | if (!res) { |
119 | ret = -EIO; | 119 | ret = -EIO; |
120 | goto err_unmap; | 120 | goto err_unmap; |
121 | } | 121 | } |
122 | host->cmd_va = ioremap(res->start, res->end - res->start + 1); | 122 | host->cmd_va = ioremap(res->start, resource_size(res)); |
123 | 123 | ||
124 | if (!host->addr_va || !host->data_va || !host->cmd_va) { | 124 | if (!host->addr_va || !host->data_va || !host->cmd_va) { |
125 | ret = -ENOMEM; | 125 | ret = -ENOMEM; |