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 <jg1....@samsung.com>

> -     hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len);
> +     hcd->regs = devm_ioremap(&dev->dev, hcd->rsrc_start, hcd->rsrc_len);

You could shrink the code even farther by using 
devm_request_and_ioremap().

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to