From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tabi Timur-B04825 Subject: Re: [PATCH] ASoC: fsl: Fix error handling if platform_device_add fails Date: Tue, 27 Sep 2011 02:08:44 +0000 Message-ID: <4E81302B.8060903@freescale.com> References: <1316502540.4269.1.camel@phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: <1316502540.4269.1.camel@phoenix> Content-Language: en-US Content-ID: <7A8BFE884E3AD4449E4CCA22377163A6@freescale.net> Sender: linux-kernel-owner@vger.kernel.org To: Axel Lin Cc: "linux-kernel@vger.kernel.org" , Liam Girdwood , Mark Brown , "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org Axel Lin wrote: > Call platform_device_put() instead of platform_device_unregister() if > platform_device_add() fails. What's wrong with calling platform_device_unregister()? -- Timur Tabi Linux kernel developer at Freescale