of: change of_match_device to work with struct device