On 7/16/2012 5:00 PM, Linus Walleij wrote:
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<linus.walleij@xxxxxxxxxx> ChangeLog v3->v4: - Rebase on top of Wolframs i2c-embedded/for-next branch. ChangeLog v2->v3: - Also delete the cached physical base and size from the state holder struct. ChangeLog v1->v2: - Use more devm* stuff, at Wolfram's request. - Note: based on a clean v3.5-rc6, may need some patch -p1< patch to apply on the i2c tree, if you want me to rebase it, just tell me where to find the baseline.
Reviewed By: Rajeev Kumar <rajeev-dlh.kumar@xxxxxx> ~Rajeev -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html