Lines Matching defs:sc_handle
2920 static struct device_attribute *sc_handle;
2945 sc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2946 if (!sc_handle)
2949 sysfs_attr_init(&sc_handle->attr);
2950 sc_handle->attr.name = "smart_connect";
2951 sc_handle->attr.mode = S_IWUSR;
2952 sc_handle->show = NULL;
2953 sc_handle->store = sony_nc_smart_conn_store;
2955 result = device_create_file(&pd->dev, sc_handle);
2957 kfree(sc_handle);
2958 sc_handle = NULL;
2967 if (sc_handle) {
2968 device_remove_file(&pd->dev, sc_handle);
2969 kfree(sc_handle);
2970 sc_handle = NULL;