From: Linus Walleij Date: Mon, 16 Jul 2012 11:30:12 +0000 (+0200) Subject: i2c: stu300: use devm managed resources X-Git-Tag: v3.6-rc1~67^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f535b94261b16343cfbc4576a941bd7901b96e1;p=pandora-kernel.git i2c: stu300: use devm managed resources Allocate memory for device state using devm_kzalloc(), get the clock using devm_clk_get(), get the IRQ using devm_request_irq(), request and remap memory using devm_request_and_ioremap(). All to simplify accounting and letting the kernel do the garbage-collection. Signed-off-by: Linus Walleij Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed