Re: [PATCH] usb: host: ohci-tmio: Use managed interfaces for resource allocation

2014-06-30 Thread Alan Stern
On Mon, 30 Jun 2014, Julia Lawall wrote: > > > @@ -215,30 +213,31 @@ static int ohci_hcd_tmio_drv_probe(struct > > > platform_device *dev) > > > > > > spin_lock_init(&tmio->lock); > > > > > > - tmio->ccr = ioremap(config->start, resource_size(config)); > > > + tmio->ccr = devm_ioremap(&dev->dev

Re: [PATCH] usb: host: ohci-tmio: Use managed interfaces for resource allocation

2014-06-30 Thread Julia Lawall
On Mon, 30 Jun 2014, Alan Stern wrote: > On Sun, 29 Jun 2014, Himangi Saraogi wrote: > > > This patch moves resources allocated using ioremap or > > dma_declare_coherent_memory to the corresponding managed interface. The > > function calls to free the allocated resources are removed in the probe

Re: [PATCH] usb: host: ohci-tmio: Use managed interfaces for resource allocation

2014-06-30 Thread Alan Stern
On Sun, 29 Jun 2014, Himangi Saraogi wrote: > This patch moves resources allocated using ioremap or > dma_declare_coherent_memory to the corresponding managed interface. The > function calls to free the allocated resources are removed in the probe > and remove functions as they are no longer requi