Re: [PATCH v2 3/4] i2c: Replace list-based mechanism for handling userspace-created clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -	/* Remove devices instantiated from sysfs */
> -	mutex_lock_nested(&adap->userspace_clients_lock,
> -			  i2c_adapter_depth(adap));
> -	list_for_each_entry_safe(client, next, &adap->userspace_clients,
> -				 detected) {
> -		dev_dbg(&adap->dev, "Removing %s at 0x%x\n", client->name,
> -			client->addr);
> -		list_del(&client->detected);
> -		i2c_unregister_device(client);
> -	}
> -	mutex_unlock(&adap->userspace_clients_lock);

Same question as previous patch: why no removal when adapter gets
deleted?

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux