summaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c34
1 files changed, 13 insertions, 21 deletions
diff --git a/modules/devices.c b/modules/devices.c
index 7eae11b9..05d3bf8a 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -830,29 +830,21 @@ guchar hi_module_get_weight(void)
void hi_module_init(void)
{
- if (!g_file_test("/usr/share/misc/pci.ids", G_FILE_TEST_EXISTS)) {
- static SyncEntry se = {
- .fancy_name = N_("Update PCI ID listing"),
- .name = "GetPCIIds",
- .save_to = "pci.ids",
- .get_data = NULL
- };
-
- sync_manager_add_entry(&se);
- }
+ static SyncEntry pci_ids = {
+ .name = N_("Update PCI ID listing"),
+ .file_name = "pci.ids",
+ };
+
+ sync_manager_add_entry(&pci_ids);
#if defined(ARCH_x86) || defined(ARCH_x86_64)
- {
- static SyncEntry se = {
- .fancy_name = N_("Update CPU feature database"),
- .name = "RecvCPUFlags",
- .save_to = "cpuflags.conf",
- .get_data = NULL
- };
-
- sync_manager_add_entry(&se);
- }
-#endif /* defined(ARCH_x86) */
+ static SyncEntry cpuflags_conf = {
+ .name = N_("Update CPU feature database"),
+ .file_name = "cpuflags.conf",
+ };
+
+ sync_manager_add_entry(&cpuflags_conf);
+#endif /* defined(ARCH_x86) */
init_cups();
sensors_init();