Searched refs:cpu_hwmon_dev (Results 1 – 1 of 1) sorted by relevance
42 static struct device *cpu_hwmon_dev; variable160 cpu_hwmon_dev = hwmon_device_register(NULL); in loongson_hwmon_init()161 if (IS_ERR(cpu_hwmon_dev)) { in loongson_hwmon_init()170 ret = sysfs_create_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_init()177 ret = create_sysfs_cputemp_files(&cpu_hwmon_dev->kobj); in loongson_hwmon_init()189 sysfs_remove_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_init()193 hwmon_device_unregister(cpu_hwmon_dev); in loongson_hwmon_init()202 remove_sysfs_cputemp_files(&cpu_hwmon_dev->kobj); in loongson_hwmon_exit()203 sysfs_remove_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_exit()205 hwmon_device_unregister(cpu_hwmon_dev); in loongson_hwmon_exit()