Lines Matching refs:ops
85 kfree(hotplug_slot->ops);
95 struct hotplug_slot_ops *ops = NULL;
107 /* Setup hotplug slot ops */
108 ops = kzalloc(sizeof(*ops), GFP_KERNEL);
109 if (!ops)
111 ops->enable_slot = enable_slot;
112 ops->disable_slot = disable_slot;
113 ops->get_power_status = get_power_status;
114 ops->get_adapter_status = get_adapter_status;
116 ops->get_latch_status = get_latch_status;
118 ops->get_attention_status = get_attention_status;
119 ops->set_attention_status = set_attention_status;
126 hotplug->ops = ops;
140 kfree(ops);