summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-08-04 22:36:38 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 15:05:32 +0100
commite1ed147fd4a322741e63f66d76e68ad83876d2ea (patch)
treeab857e4008a894e0ad73ddecbfb4b0bb662ad5f8 /drivers/mtd/maps
parent99f2b107924c07bee0bae7151426495fb815ca6e (diff)
downloadop-kernel-dev-e1ed147fd4a322741e63f66d76e68ad83876d2ea.zip
op-kernel-dev-e1ed147fd4a322741e63f66d76e68ad83876d2ea.tar.gz
mtd: spear_smi: use devm_ functions consistently
Use devm_kzalloc for all calls to kzalloc and not just the first. Use devm functions for other allocations as well. Move the call to platform_get_resource(pdev, IORESOURCE_MEM, 0) closer to where its result is passed to devm_request_and_ioremap to make the lack of need for a NULL test more evident. The semantic match that finds the inconsistency is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ @@ *devm_kzalloc(...) ... *kzalloc(...) // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud