From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755070Ab1ITMEE (ORCPT ); Tue, 20 Sep 2011 08:04:04 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:59959 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754737Ab1ITMEB (ORCPT ); Tue, 20 Sep 2011 08:04:01 -0400 Date: Tue, 20 Sep 2011 13:04:00 +0100 From: Mark Brown To: Axel Lin Cc: linux-kernel@vger.kernel.org, Timur Tabi , Liam Girdwood , alsa-devel@alsa-project.org Subject: Re: [PATCH] ASoC: fsl: Fix error handling if platform_device_add fails Message-ID: <20110920120359.GA2809@opensource.wolfsonmicro.com> References: <1316502540.4269.1.camel@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1316502540.4269.1.camel@phoenix> X-Cookie: You dialed 5483. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 20, 2011 at 03:09:00PM +0800, Axel Lin wrote: > Call platform_device_put() instead of platform_device_unregister() if > platform_device_add() fails. Applied, thanks.