usb: host: uhci-grlib.c : use devm_ functions
A message that is not in the archive (sent off-list or not yet received): 20140610164548.GA5567@himangi-Dell
Quoted 14 lines · Himangi Saraogi
The various
devm_functions allocate memory that is released when a driver detaches. This patch usesdevm_ioremap_resourcefor data that is allocated in the probe function of a platform device and is only freed in the remove function. The corresponding free functions are removed and two labels are done away with. Also,linux/device.his added to make sure the devm_*() routine declarations are unambiguously available.Signed-off-by Himangi Saraogi <[email protected]>Acked-by Julia Lawall <[email protected]>---
v2: fix error ofdevm_ioremap_resourceand change label names.
Review
Quoted 1 line
(quoted diff) +1
-0+ hcd->regs = devm_ioremap_resource(&op->dev, hcd);
Obviously you haven't tried to compile this.
Alan Stern