| .. | .. |
|---|
| 1293 | 1293 | continue; |
|---|
| 1294 | 1294 | } |
|---|
| 1295 | 1295 | |
|---|
| 1296 | | - /* |
|---|
| 1297 | | - * All memory regions added from memory-hotplug path have the |
|---|
| 1298 | | - * flag IORESOURCE_SYSTEM_RAM. If the resource does not have |
|---|
| 1299 | | - * this flag, we know that we are dealing with a resource coming |
|---|
| 1300 | | - * from HMM/devm. HMM/devm use another mechanism to add/release |
|---|
| 1301 | | - * a resource. This goes via devm_request_mem_region and |
|---|
| 1302 | | - * devm_release_mem_region. |
|---|
| 1303 | | - * HMM/devm take care to release their resources when they want, |
|---|
| 1304 | | - * so if we are dealing with them, let us just back off here. |
|---|
| 1305 | | - */ |
|---|
| 1306 | | - if (!(res->flags & IORESOURCE_SYSRAM)) { |
|---|
| 1307 | | - break; |
|---|
| 1308 | | - } |
|---|
| 1309 | | - |
|---|
| 1310 | 1296 | if (!(res->flags & IORESOURCE_MEM)) |
|---|
| 1311 | 1297 | break; |
|---|
| 1312 | 1298 | |
|---|