Lines Matching defs:lowbatt_handle
2626 static struct device_attribute *lowbatt_handle;
2662 lowbatt_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2663 if (!lowbatt_handle)
2666 sysfs_attr_init(&lowbatt_handle->attr);
2667 lowbatt_handle->attr.name = "lowbatt_hibernate";
2668 lowbatt_handle->attr.mode = S_IRUGO | S_IWUSR;
2669 lowbatt_handle->show = sony_nc_lowbatt_show;
2670 lowbatt_handle->store = sony_nc_lowbatt_store;
2672 result = device_create_file(&pd->dev, lowbatt_handle);
2674 kfree(lowbatt_handle);
2675 lowbatt_handle = NULL;
2684 if (lowbatt_handle) {
2685 device_remove_file(&pd->dev, lowbatt_handle);
2686 kfree(lowbatt_handle);
2687 lowbatt_handle = NULL;