watchdog: sp805: Use devm routines
authorViresh Kumar <viresh.kumar@st.com>
Mon, 12 Mar 2012 04:22:15 +0000 (09:52 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 27 Mar 2012 18:14:34 +0000 (20:14 +0200)
sp805 driver currently uses normal kzalloc, 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.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

No differences found