[patch v1 1/2] drivers: jtag: Add JTAG core driver

Andrew Lunn andrew at lunn.ch
Wed Aug 2 07:16:38 PDT 2017


> +void jtag_unregister(struct jtag *jtag)
> +{
> +	struct device *dev = jtag->dev;
> +
> +	mutex_lock(&jtag_mutex);
> +	list_add_tail(&jtag->list, &jtag_list);

add?

> +	mutex_unlock(&jtag_mutex);
> +	cdev_del(&jtag->cdev);
> +	device_unregister(dev);
> +	ida_simple_remove(&jtag_ida, jtag->id);
> +}

  Andrew



More information about the linux-arm-kernel mailing list