Hi Linus,

On Thu, Jun 04, 2009 at 10:30:23AM +0200, Linus Walleij wrote:
> 2009/6/4 Baruch Siach <[email protected]>:
> 
> > +static int __devexit designware_spi_remove(struct platform_device *dev)
> > +{
> > +       struct designware_spi *dwspi;
> > +       struct spi_master *master;
> > +
> > +       master = platform_get_drvdata(dev);
> > +       dwspi = spi_master_get_devdata(master);
> > +
> > +       free_irq(dwspi->irq, dwspi);
> > +       iounmap(dwspi->regs);
> 
> release_mem_region()?

OK.

> > +       destroy_workqueue(dwspi->workqueue);
> > +       tasklet_kill(&dwspi->pump_transfers);
> > +       platform_set_drvdata(dev, 0);
> > +       spi_master_put(master);
> > +
> > +       return 0;
> > +}
> 
> 
> Then it's good :-)

Thanks.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - 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
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to