Searched refs:cpu_hwmon_dev (Results 1 – 1 of 1) sorted by relevance
31 static struct device *cpu_hwmon_dev; variable132 sysfs_remove_files(&cpu_hwmon_dev->kobj, hwmon_cputemp1); in remove_sysfs_cputemp_files()135 sysfs_remove_files(&cpu_hwmon_dev->kobj, hwmon_cputemp2); in remove_sysfs_cputemp_files()156 cpu_hwmon_dev = hwmon_device_register(NULL); in loongson_hwmon_init()157 if (IS_ERR(cpu_hwmon_dev)) { in loongson_hwmon_init()163 ret = sysfs_create_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_init()170 ret = create_sysfs_cputemp_files(&cpu_hwmon_dev->kobj); in loongson_hwmon_init()182 sysfs_remove_group(&cpu_hwmon_dev->kobj, in loongson_hwmon_init()186 hwmon_device_unregister(cpu_hwmon_dev); in loongson_hwmon_init()195 remove_sysfs_cputemp_files(&cpu_hwmon_dev->kobj); in loongson_hwmon_exit()[all …]