From: Viresh Kumar Date: Mon, 12 Mar 2012 04:21:59 +0000 (+0530) Subject: watchdog: mpcore_wdt: Use devm routines X-Git-Tag: v3.4-rc1~67^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75f5a536c0b605b9b8406325f51f62f67141973e;p=pandora-kernel.git watchdog: mpcore_wdt: Use devm routines mpcore_wdt driver currently uses normal kzalloc, request_irq, ioremap, etc routines. This patch replaces these routines with devm_kzalloc and devm_request_mem_region etc, so that we don't need to handle freeing of resources for error cases and module removal routine. Also, request_irq is moved before registering misc device, so that we are ready for irq as soon as device is registered. Signed-off-by: Viresh Kumar Signed-off-by: Wim Van Sebroeck --- Reading git-diff-tree failed