]> err.no Git - linux-2.6/blobdiff - drivers/cpufreq/cpufreq_userspace.c
iommu sg merging: swiotlb: respect the segment boundary limits
[linux-2.6] / drivers / cpufreq / cpufreq_userspace.c
index b1348ff9fcf4a77913ed1c7e09e6cfe335d8ce60..f8cdde4bf6cd86030a8f829d00fdac862d5847f2 100644 (file)
@@ -125,7 +125,7 @@ store_speed (struct cpufreq_policy *policy, const char *buf, size_t count)
 
 static struct freq_attr freq_attr_scaling_setspeed =
 {
-       .attr = { .name = "scaling_setspeed", .mode = 0644, .owner = THIS_MODULE },
+       .attr = { .name = "scaling_setspeed", .mode = 0644 },
        .show = show_speed,
        .store = store_speed,
 };
@@ -231,5 +231,9 @@ MODULE_AUTHOR ("Dominik Brodowski <linux@brodo.de>, Russell King <rmk@arm.linux.
 MODULE_DESCRIPTION ("CPUfreq policy governor 'userspace'");
 MODULE_LICENSE ("GPL");
 
+#ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE
 fs_initcall(cpufreq_gov_userspace_init);
+#else
+module_init(cpufreq_gov_userspace_init);
+#endif
 module_exit(cpufreq_gov_userspace_exit);