Lines Matching defs:fan_handle
2677 static struct device_attribute *fan_handle, *hsf_handle;
2724 fan_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2725 if (!fan_handle)
2734 sysfs_attr_init(&fan_handle->attr);
2735 fan_handle->attr.name = "fanspeed";
2736 fan_handle->attr.mode = S_IRUGO;
2737 fan_handle->show = sony_nc_fanspeed_show;
2738 fan_handle->store = NULL;
2746 result = device_create_file(&pd->dev, fan_handle);
2757 device_remove_file(&pd->dev, fan_handle);
2764 kfree(fan_handle);
2765 fan_handle = NULL;
2771 if (fan_handle) {
2772 device_remove_file(&pd->dev, fan_handle);
2773 kfree(fan_handle);
2774 fan_handle = NULL;