Driver core: convert firmware code to use struct device