File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1714,18 +1714,13 @@ static int __init reserve_setup(char *str)
1714
1714
* I/O port space; otherwise assume it's memory.
1715
1715
*/
1716
1716
if (io_start < 0x10000 ) {
1717
- res -> flags = IORESOURCE_IO ;
1717
+ * res = DEFINE_RES_IO_NAMED ( io_start , io_num , "reserved" ) ;
1718
1718
parent = & ioport_resource ;
1719
1719
} else {
1720
- res -> flags = IORESOURCE_MEM ;
1720
+ * res = DEFINE_RES_MEM_NAMED ( io_start , io_num , "reserved" ) ;
1721
1721
parent = & iomem_resource ;
1722
1722
}
1723
- res -> name = "reserved" ;
1724
- res -> start = io_start ;
1725
- res -> end = io_start + io_num - 1 ;
1726
1723
res -> flags |= IORESOURCE_BUSY ;
1727
- res -> desc = IORES_DESC_NONE ;
1728
- res -> child = NULL ;
1729
1724
if (request_resource (parent , res ) == 0 )
1730
1725
reserved = x + 1 ;
1731
1726
}
You can’t perform that action at this time.
0 commit comments