Re: [PATCH] USB: ohci-s3c2410: use devm_ functions

2012-10-07 Thread Jingoo Han
On Friday, October 05, 2012 11:35 PM Alan Stern wrote > > On Fri, 5 Oct 2012, Jingoo Han wrote: > > > The devm_ functions allocate memory that is released when a driver > > detaches. This makes the code smaller and a bit simpler. > > > > Signed-off-by: Jingoo Han > > > - hcd->regs = ioremap(h

Re: [PATCH] USB: ohci-s3c2410: use devm_ functions

2012-10-05 Thread Alan Stern
On Fri, 5 Oct 2012, Jingoo Han wrote: > The devm_ functions allocate memory that is released when a driver > detaches. This makes the code smaller and a bit simpler. > > Signed-off-by: Jingoo Han > - hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); > + hcd->regs = devm_ioremap(&dev-

[PATCH] USB: ohci-s3c2410: use devm_ functions

2012-10-05 Thread Jingoo Han
The devm_ functions allocate memory that is released when a driver detaches. This makes the code smaller and a bit simpler. Signed-off-by: Jingoo Han --- drivers/usb/host/ohci-s3c2410.c | 14 -- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ohci-s