i2c: tegra: make all resource allocation through devm_*
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 13 Jun 2012 10:12:39 +0000 (15:42 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sun, 8 Jul 2012 10:49:16 +0000 (12:49 +0200)
commit9cbb6b2b92d0fdade0fe00cc00e3658b44c86676
treeacb1cc6cf7f5a494c7c560f5eab04021374037a7
parentc8f5af2f507d7f97a11065b98ec9f6c22aad8af0
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>
drivers/i2c/busses/i2c-tegra.c