Searched refs:cpu_hwmon_dev (Results 1 – 1 of 1) sorted by relevance
44 static struct device *cpu_hwmon_dev; variable162 cpu_hwmon_dev = hwmon_device_register(NULL); in loongson_hwmon_init()163 if (IS_ERR(cpu_hwmon_dev)) { in loongson_hwmon_init()172 ret = sysfs_create_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_init()179 ret = create_sysfs_cputemp_files(&cpu_hwmon_dev->kobj); in loongson_hwmon_init()191 sysfs_remove_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_init()195 hwmon_device_unregister(cpu_hwmon_dev); in loongson_hwmon_init()204 remove_sysfs_cputemp_files(&cpu_hwmon_dev->kobj); in loongson_hwmon_exit()205 sysfs_remove_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_exit()207 hwmon_device_unregister(cpu_hwmon_dev); in loongson_hwmon_exit()