sparc: move of_device common code to of_device_common