Lines Matching defs:sc_handle
2905 static struct device_attribute *sc_handle;
2930 sc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2931 if (!sc_handle)
2934 sysfs_attr_init(&sc_handle->attr);
2935 sc_handle->attr.name = "smart_connect";
2936 sc_handle->attr.mode = S_IWUSR;
2937 sc_handle->show = NULL;
2938 sc_handle->store = sony_nc_smart_conn_store;
2940 result = device_create_file(&pd->dev, sc_handle);
2942 kfree(sc_handle);
2943 sc_handle = NULL;
2952 if (sc_handle) {
2953 device_remove_file(&pd->dev, sc_handle);
2954 kfree(sc_handle);
2955 sc_handle = NULL;