/* XXX This could be per-host device */
-static DEFINE_SPINLOCK(gb_modules_lock);
+static DEFINE_SPINLOCK(gb_interfaces_lock);
static int gb_interface_match_one_id(struct gb_interface *intf,
const struct greybus_interface_id *id)
return NULL;
}
- spin_lock_irq(&gb_modules_lock);
+ spin_lock_irq(&gb_interfaces_lock);
list_add_tail(&intf->links, &hd->interfaces);
- spin_unlock_irq(&gb_modules_lock);
+ spin_unlock_irq(&gb_interfaces_lock);
return intf;
}
if (WARN_ON(!intf))
return;
- spin_lock_irq(&gb_modules_lock);
+ spin_lock_irq(&gb_interfaces_lock);
list_del(&intf->links);
- spin_unlock_irq(&gb_modules_lock);
+ spin_unlock_irq(&gb_interfaces_lock);
gb_bundle_destroy(intf);