Keep the physical address allocation that hmm_add_device does with the rest of the resource code, and allow future reuse of it without the hmm wrapper.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -285,6 +285,8 @@ static inline bool resource_overlaps(struct resource *r1, struct resource *r2) · 284 unmodified lines | |||
| 285 | return (r1->start <= r2->end && r1->end >= r2->start); | 285 | return (r1->start <= r2->end && r1->end >= r2->start); |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | struct resource *devm_request_free_mem_region(struct device *dev, | ||
| 289 | struct resource *base, unsigned long size); | ||
| 288 | 290 | ||
| 289 | #endif /* __ASSEMBLY__ */ | 291 | #endif /* __ASSEMBLY__ */ |
| 290 | #endif /* _LINUX_IOPORT_H */ | 292 | #endif /* _LINUX_IOPORT_H */ |