From: Baruch Siach Subject: Re: [PATCH v3] spi: driver for the Synopsys DesignWare SPI controller Date: Fri, 5 Jun 2009 05:58:20 +0300 Message-ID: <20090605025819.GB25782@tarshish> References: <1244087418-10889-1-git-send-email-baruch@tkos.co.il> <63386a3d0906040130h322028d3ocbd3e31719bac8c9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, David Brownell To: Linus Walleij Return-path: Content-Disposition: inline In-Reply-To: <63386a3d0906040130h322028d3ocbd3e31719bac8c9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org Hi Linus, On Thu, Jun 04, 2009 at 10:30:23AM +0200, Linus Walleij wrote: > 2009/6/4 Baruch Siach : > = > > +static int __devexit designware_spi_remove(struct platform_device *dev) > > +{ > > + =A0 =A0 =A0 struct designware_spi *dwspi; > > + =A0 =A0 =A0 struct spi_master *master; > > + > > + =A0 =A0 =A0 master =3D platform_get_drvdata(dev); > > + =A0 =A0 =A0 dwspi =3D spi_master_get_devdata(master); > > + > > + =A0 =A0 =A0 free_irq(dwspi->irq, dwspi); > > + =A0 =A0 =A0 iounmap(dwspi->regs); > = > release_mem_region()? OK. > > + =A0 =A0 =A0 destroy_workqueue(dwspi->workqueue); > > + =A0 =A0 =A0 tasklet_kill(&dwspi->pump_transfers); > > + =A0 =A0 =A0 platform_set_drvdata(dev, 0); > > + =A0 =A0 =A0 spi_master_put(master); > > + > > + =A0 =A0 =A0 return 0; > > +} > = > = > Then it's good :-) Thanks. baruch -- = ~. .~ Tk Open Systems =3D}------------------------------------------------ooO--U--Ooo------------= {=3D - baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il - ---------------------------------------------------------------------------= --- OpenSolaris 2009.06 is a cutting edge operating system for enterprises = looking to deploy the next generation of Solaris that includes the latest = innovations from Sun and the OpenSource community. Download a copy and = enjoy capabilities such as Networking, Storage and Virtualization. = Go to: http://p.sf.net/sfu/opensolaris-get