aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/alloc.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-03-12 09:51:59 +0530
committerWim Van Sebroeck <wim@iguana.be>2012-03-27 20:14:15 +0200
commit75f5a536c0b605b9b8406325f51f62f67141973e (patch)
tree657168af4ffe1dbe0aee01903e8e2079567cc4e7 /arch/powerpc/lib/alloc.c
parentwatchdog: mpcore_wdt: Rename dev to pdev for pointing to struct platform_device (diff)
downloadlinux-rng-75f5a536c0b605b9b8406325f51f62f67141973e.tar.xz
linux-rng-75f5a536c0b605b9b8406325f51f62f67141973e.zip
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 <viresh.kumar@st.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'arch/powerpc/lib/alloc.c')
0 files changed, 0 insertions, 0 deletions