diff options
| author | Pekon Gupta <pekon@ti.com> | 2013-10-24 18:20:25 +0530 |
|---|---|---|
| committer | Evan Wilson <evan@oliodevices.com> | 2014-11-29 14:50:01 -0800 |
| commit | f85370f07c5ae0f5693c52e402038d5dadf47378 (patch) | |
| tree | 7c474467eda25cfddb5f3ac1f6894ebe3b56e297 /drivers/misc/ibmasm/module.c | |
| parent | 49479d69dfac1cd813276cc45fa7b03058257457 (diff) | |
| download | olio-linux-3.10-f85370f07c5ae0f5693c52e402038d5dadf47378.tar.xz olio-linux-3.10-f85370f07c5ae0f5693c52e402038d5dadf47378.zip | |
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 <pekon@ti.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
0 files changed, 0 insertions, 0 deletions