Lines Matching defs:fan_handle
2692 static struct device_attribute *fan_handle, *hsf_handle;
2739 fan_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2740 if (!fan_handle)
2749 sysfs_attr_init(&fan_handle->attr);
2750 fan_handle->attr.name = "fanspeed";
2751 fan_handle->attr.mode = S_IRUGO;
2752 fan_handle->show = sony_nc_fanspeed_show;
2753 fan_handle->store = NULL;
2761 result = device_create_file(&pd->dev, fan_handle);
2772 device_remove_file(&pd->dev, fan_handle);
2779 kfree(fan_handle);
2780 fan_handle = NULL;
2786 if (fan_handle) {
2787 device_remove_file(&pd->dev, fan_handle);
2788 kfree(fan_handle);
2789 fan_handle = NULL;