platform 驱动 failed to claim resource 2|3|4|5 错误

platform 驱动  failed to claim resource 2|3|4|5  错误




platform 驱动  failed to claim resource 2|3|4|5  错误




原因是device里面的注册的resource结构体有问题,地址重复了。。。
static struct resource s5pc100_xiaozj[] = {
[0] = {
.start = 0xe0300080,
.end   = 0xe0300080 + 0x4,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 0xEA000000,
.end   = 0xEA000000 + 0x4 - 1,利用减法!!!!!!!!!
.flags = IORESOURCE_MEM,
},
#if 1
[2] = {
.start = 0xEA000004,
.end   = 0xEA000004 + 0x4 - 1 ,
.flags = IORESOURCE_MEM,
},
#endif
#if 1
[3] = {
.start = 0xEA000018,
.end   = 0xEA000018 + 0x4-1,
.flags = IORESOURCE_MEM,
},
[4] = {
.start = 0xea00001c,
.end   = 0xea00001c + 4,
.flags = IORESOURCE_MEM,
},
[5] = {
.start = 0xea000008,
.end   = 0xea000008 + 4,
.flags = IORESOURCE_MEM,
},
#endif




};

你可能感兴趣的:(c,struct)