PM / domains: factor out code to get the generic PM domain from a struct device