diff options
author | 2014-08-07 17:43:28 +0530 | |
---|---|---|
committer | 2014-09-23 23:04:17 -0700 | |
commit | 759e7d6df3e4da96573a0bf957383211314792ee (patch) | |
tree | 0338d6da70b702455a3caea45513a603ddea9d45 /security/selinux/hooks.c | |
parent | misc: lattice-ecp3-config: Add missing MODULE_FIRMWARE() (diff) | |
download | wireguard-linux-759e7d6df3e4da96573a0bf957383211314792ee.tar.xz wireguard-linux-759e7d6df3e4da96573a0bf957383211314792ee.zip |
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 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions