drivers/rtc/rtc-coh901331.c: use devm allocation
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Jul 2012 21:41:32 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:17 +0000 (17:25 -0700)
commit36ac1d24f1488c32b85a1718a4edfda615b2ef77
treeb66db67306aaa9d8e154e7d2c04f03712a880251
parent8384dfeb759acac48ea24b81f134cac3cbb3e6fc
drivers/rtc/rtc-coh901331.c: use devm allocation

Allocate memory, region, remap and irq for device state using devm_*
helpers to simplify memory accounting.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-coh901331.c