提交 167473a5 编写于 作者: A Alexander Clouter 提交者: Andrew Lunn

ARM: orion5x: ts78xx fix NAND resource off by one

Changelog:
 v2: use DEFINE_RES_MEM as suggesed by Hartley Sweeten
 v1: inital release
Signed-off-by: NAlexander Clouter <alex@digriz.org.uk>
Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
上级 9f234997
...@@ -292,11 +292,8 @@ static struct platform_nand_data ts78xx_ts_nand_data = { ...@@ -292,11 +292,8 @@ static struct platform_nand_data ts78xx_ts_nand_data = {
}, },
}; };
static struct resource ts78xx_ts_nand_resources = { static struct resource ts78xx_ts_nand_resources
.start = TS_NAND_DATA, = DEFINE_RES_MEM(TS_NAND_DATA, 4);
.end = TS_NAND_DATA + 4,
.flags = IORESOURCE_MEM,
};
static struct platform_device ts78xx_ts_nand_device = { static struct platform_device ts78xx_ts_nand_device = {
.name = "gen_nand", .name = "gen_nand",
...@@ -332,11 +329,8 @@ static void ts78xx_ts_nand_unload(void) ...@@ -332,11 +329,8 @@ static void ts78xx_ts_nand_unload(void)
****************************************************************************/ ****************************************************************************/
#define TS_RNG_DATA (TS78XX_FPGA_REGS_PHYS_BASE | 0x044) #define TS_RNG_DATA (TS78XX_FPGA_REGS_PHYS_BASE | 0x044)
static struct resource ts78xx_ts_rng_resource = { static struct resource ts78xx_ts_rng_resource
.flags = IORESOURCE_MEM, = DEFINE_RES_MEM(TS_RNG_DATA, 4);
.start = TS_RNG_DATA,
.end = TS_RNG_DATA + 4 - 1,
};
static struct timeriomem_rng_data ts78xx_ts_rng_data = { static struct timeriomem_rng_data ts78xx_ts_rng_data = {
.period = 1000000, /* one second */ .period = 1000000, /* one second */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册