Lines Matching refs:sc_handle
2913 static struct device_attribute *sc_handle; variable
2938 sc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_smart_conn_setup()
2939 if (!sc_handle) in sony_nc_smart_conn_setup()
2942 sysfs_attr_init(&sc_handle->attr); in sony_nc_smart_conn_setup()
2943 sc_handle->attr.name = "smart_connect"; in sony_nc_smart_conn_setup()
2944 sc_handle->attr.mode = S_IWUSR; in sony_nc_smart_conn_setup()
2945 sc_handle->show = NULL; in sony_nc_smart_conn_setup()
2946 sc_handle->store = sony_nc_smart_conn_store; in sony_nc_smart_conn_setup()
2948 result = device_create_file(&pd->dev, sc_handle); in sony_nc_smart_conn_setup()
2950 kfree(sc_handle); in sony_nc_smart_conn_setup()
2951 sc_handle = NULL; in sony_nc_smart_conn_setup()
2960 if (sc_handle) { in sony_nc_smart_conn_cleanup()
2961 device_remove_file(&pd->dev, sc_handle); in sony_nc_smart_conn_cleanup()
2962 kfree(sc_handle); in sony_nc_smart_conn_cleanup()
2963 sc_handle = NULL; in sony_nc_smart_conn_cleanup()