Driver core: convert cpuid code to use struct device