From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Unregister a card from userspace? Date: Wed, 4 Nov 2015 12:24:42 +0100 Message-ID: <5639EAFA.9060008@ladisch.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from dehamd003.servertools24.de (dehamd003.servertools24.de [31.47.254.18]) by alsa0.perex.cz (Postfix) with ESMTP id 1A159260431 for ; Wed, 4 Nov 2015 12:24:45 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Ricard Wanderlof , alsa-devel List-Id: alsa-devel@alsa-project.org Ricard Wanderlof wrote: > My use case is that I have a card driver I'm working on as a module, and > while insmodding it works fine, I can't rmmod it because once > snd_soc_register_card() has been called, it has a usage count of 2 and > thus cannot be rmmod:ed. soc_probe_component() adds a reference to each component's driver's module. Maybe putting each component into its own module would help. Anyway, you should be able to unbind the driver: Regards, Clemens