of/device: Replace struct of_device with struct platform_device