summaryrefslogtreecommitdiff
path: root/drivers/char/xilinx_hwicap
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-08-07 12:13:28 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-24 06:04:17 (GMT)
commit759e7d6df3e4da96573a0bf957383211314792ee (patch)
tree0338d6da70b702455a3caea45513a603ddea9d45 /drivers/char/xilinx_hwicap
parent322d3f6a58e479d27b86deb6024148669d6a2fa1 (diff)
downloadlinux-759e7d6df3e4da96573a0bf957383211314792ee.tar.xz
pcie-gadget-spear: use devm_ functions
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. Also, the unnecessary labels are removed and linux/device.h is added to make sure the devm_*() routine declarations are unambiguously available. The initial call to platform_get_resource is moved down to the introduced call to devm_ioremap_resource that uses its result. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/xilinx_hwicap')
0 files changed, 0 insertions, 0 deletions