net: dnet: Use managed interfaces
authorHimangi Saraogi <himangi774@gmail.com>
Fri, 1 Aug 2014 15:30:03 +0000 (21:00 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Aug 2014 23:40:52 +0000 (16:40 -0700)
This patch introduces the use of managed interfaces like
devm_ioremap_resource and does away with the calls to free the
allocated memory in the probe and remove functions. Also, some
labels and variable are done away with. This fixes a bug as there
was a missing release_mem_region in the remove function.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dnet.c

Simple merge