From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: "Dale Farnsworth" Date: Wed, 2 May 2007 19:57:18 -0700 To: Stephen Rothwell Subject: Re: [PATCH 10/13] powerpc: Add arch/powerpc mv64x60 PCI setup Message-ID: <20070503025718.GC26019@xyzzy.farnsworth.org> References: <20070425234630.GA4046@mag.az.mvista.com> <20070426000107.GL4046@mag.az.mvista.com> <20070502214609.GE27253@xyzzy.farnsworth.org> <20070503121358.aabc2755.sfr@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20070503121358.aabc2755.sfr@canb.auug.org.au> Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, May 03, 2007 at 12:13:58PM +1000, Stephen Rothwell wrote: > On Wed, 2 May 2007 14:46:09 -0700 "Dale Farnsworth" wrote: > > > > +DECLARE_MUTEX(mv64x60_hs_lock); > > Does this need to be global (it is not declared in a header file)? Nope. Fixed. > > + np = of_find_compatible_node(NULL, NULL, "mv64x60"); > > + if (!np) > > + return 0; > > + > > + pdev = platform_device_register_simple("mv64x60", 0, NULL, 0); > > + if (IS_ERR(pdev)) > > + return PTR_ERR(pdev); > > This error leaks a reference count on np. Good find. Fixed. Stephen, thanks for taking the time to review and comment. I'll wait to see what other comments I get before reposting. -Dale