[PATCH v4 1/5] of/platform: Generalize /reserved-memory handling

2017-10-10 Thread Bjorn Andersson
By iterating over all /reserved-memory child nodes and match each one to a list of compatibles that we want to treat specially, we can easily extend the list of compatibles to handle - without having to resort to of_platform_populate() that would create unnecessary platform_devices. Reviewed-by:

[PATCH v4 1/5] of/platform: Generalize /reserved-memory handling

2017-10-10 Thread Bjorn Andersson
By iterating over all /reserved-memory child nodes and match each one to a list of compatibles that we want to treat specially, we can easily extend the list of compatibles to handle - without having to resort to of_platform_populate() that would create unnecessary platform_devices. Reviewed-by: