]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/dsp/dsp_ctl.c
ARM: OMAP: DSPGW: Use device model
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / dsp / dsp_ctl.c
index d4dfc48287e0810f72d23e115c40fd0f41d6f6bf..ba7cc2b8b893e09cafd6c8eebb7a93db8575ceab 100644 (file)
@@ -273,7 +273,7 @@ static int dsp_cfg(void)
                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);
@@ -290,7 +290,7 @@ static int dsp_uncfg(void)
        /* 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();
@@ -1038,14 +1038,14 @@ out:
 
 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);
 }