i2c: tegra: make all resource allocation through devm_*
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 13 Jun 2012 10:12:39 +0000 (15:12 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 19 Jul 2012 22:38:40 +0000 (15:38 -0700)
commit4bee10d8a9b5404c490fe2c6ed4bac574f9d20f0
treea6daa28722b6a56cb35cab31192d64a0190dce06
parent777bc1756c26cad99fa20b605f4fc36448de95d7
i2c: tegra: make all resource allocation through devm_*

Use the devm_* for the memory region allocation, interrupt request,
clock handler request.
By doing this, it does not require to explicitly free it and hence
saving some code.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cherry-picked from mainline
9cbb6b2b92d0fdade0fe00cc00e3658b44c86676

Change-Id: I0bc86dbd2bd4e460c75f6d425131f9e27bdace71
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116468
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>
drivers/i2c/busses/i2c-tegra.c