Lines Matching defs:lowbatt_handle
2611 static struct device_attribute *lowbatt_handle;
2647 lowbatt_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2648 if (!lowbatt_handle)
2651 sysfs_attr_init(&lowbatt_handle->attr);
2652 lowbatt_handle->attr.name = "lowbatt_hibernate";
2653 lowbatt_handle->attr.mode = S_IRUGO | S_IWUSR;
2654 lowbatt_handle->show = sony_nc_lowbatt_show;
2655 lowbatt_handle->store = sony_nc_lowbatt_store;
2657 result = device_create_file(&pd->dev, lowbatt_handle);
2659 kfree(lowbatt_handle);
2660 lowbatt_handle = NULL;
2669 if (lowbatt_handle) {
2670 device_remove_file(&pd->dev, lowbatt_handle);
2671 kfree(lowbatt_handle);
2672 lowbatt_handle = NULL;