aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorPekon Gupta <[email protected]>2013-10-24 18:20:25 +0530
committerBrian Norris <[email protected]>2013-11-06 23:33:11 -0800
commit70ba6d71ddcde8aa5a6e2b7f616e77b4bb96b984 (patch)
treed23df182928e29c7cea1b7048f221c553d32c665 /lib/test-string_helpers.c
parent32d42a855a6f1445373f3d680e9125344aca294c (diff)
mtd: nand: omap: updated devm_xx for all resource allocation and free calls
"Managed Device Resource" or devm_xx calls takes care of automatic freeing of the resource in case of: - failure during driver probe - failure during resource allocation - detaching or unloading of driver module (rmmod) Reference: Documentation/driver-model/devres.txt Though OMAP NAND driver handles freeing of resource allocation in most of the cases, but using devm_xx provides more clean and effortless approach to handle all such cases. - simplifies label for exiting probe during error s/out_release_mem_region/return_error Signed-off-by: Pekon Gupta <[email protected]> Tested-by: Ezequiel Garcia <[email protected]> Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions