of/device: populate platform_device (of_device) resource table on allocation