i2c: ocores: Use devm_request_and_ioremap()
authorThierry Reding <thierry.reding@avionic-design.de>
Wed, 8 Aug 2012 06:54:32 +0000 (08:54 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Tue, 13 Nov 2012 11:16:24 +0000 (12:16 +0100)
commit970d494c323826d8bb21e8ed1796da15082808ec
tree406f14c7402af1b5b01e88153eeb87163f70228f
parent45fd5e4ad2052101b4ceda5fdf4b003c428ebdfc
i2c: ocores: Use devm_request_and_ioremap()

Replacing the devm_request_mem_region() and devm_ioremap_nocache() calls
by a single call to devm_request_and_ioremap() simplifies the code.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-ocores.c