i2c: pnx: Use devm_*() functions
authorJingoo Han <jg1.han@samsung.com>
Tue, 14 Jan 2014 00:19:30 +0000 (09:19 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 16 Jan 2014 10:15:50 +0000 (11:15 +0100)
commitd1ccc125f348ff31dd7954ae718e73ba1c884da9
tree9ea8ac3d16474427851bccc38ba8d7773c426f1f
parentd9a3afc2cfe8dd825cb465b22cf7df8ad204c171
i2c: pnx: Use devm_*() functions

Use devm_*() functions to make cleanup paths simpler,
and remove redundant return value check of platform_get_resource()
because the value is checked by devm_ioremap_resource().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pnx.c
include/linux/i2c-pnx.h