net: ks8851-ml: Use devm_ioremap_resource
authorHimangi Saraogi <himangi774@gmail.com>
Fri, 1 Aug 2014 15:29:13 +0000 (20:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Aug 2014 23:40:52 +0000 (16:40 -0700)
commit54789983d14c00c80933beb782205df2a6c59afc
tree740721faa0e425df49426b383d83d97cae249713
parent6751edeb870034d95dc227716863c4e5572e35b6
net: ks8851-ml: Use devm_ioremap_resource

This patch introduces the use of devm_ioremap_resource, devm_kmalloc and
does away with the functions to free the allocated memory in the probe
and remove functions. Also, some labels are done away with. A bug is
fixed as two regions are allocated in the probe function, but only one
is freed 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/micrel/ks8851_mll.c