goto out;
/* create runtime sysfs entries */
- device_create_file(&dsp_device.dev, &dev_attr_loadinfo);
+ device_create_file(dsp_device, &dev_attr_loadinfo);
out:
dsp_mem_disable((void *)dspmem_base);
/* FIXME: lock task module */
/* remove runtime sysfs entries */
- device_remove_file(&dsp_device.dev, &dev_attr_loadinfo);
+ device_remove_file(dsp_device, &dev_attr_loadinfo);
dsp_mbox_stop();
dsp_twch_stop();
void __init dsp_ctl_init(void)
{
- device_create_file(&dsp_device.dev, &dev_attr_ifver);
- device_create_file(&dsp_device.dev, &dev_attr_cpustat);
- device_create_file(&dsp_device.dev, &dev_attr_icrmask);
+ device_create_file(dsp_device, &dev_attr_ifver);
+ device_create_file(dsp_device, &dev_attr_cpustat);
+ device_create_file(dsp_device, &dev_attr_icrmask);
}
void dsp_ctl_exit(void)
{
- device_remove_file(&dsp_device.dev, &dev_attr_ifver);
- device_remove_file(&dsp_device.dev, &dev_attr_cpustat);
- device_remove_file(&dsp_device.dev, &dev_attr_icrmask);
+ device_remove_file(dsp_device, &dev_attr_ifver);
+ device_remove_file(dsp_device, &dev_attr_cpustat);
+ device_remove_file(dsp_device, &dev_attr_icrmask);
}