]> git.baikalelectronics.ru Git - kernel.git/commit
ethoc: use devres resource management
authorJonas Bonn <jonas@southpole.se>
Fri, 11 Jun 2010 02:47:40 +0000 (02:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2010 20:28:37 +0000 (13:28 -0700)
commitbce8b01f49f92695b1401f1faaf9ba0ff2c85027
treed6be811cf4910167ed83fdfb2bdcd51d0c7bf0fd
parent3abfef3ced8dae6db1368be5fa475a08f67f9f27
ethoc: use devres resource management

The point of using the devres resource management routines is that they
simplify the driver by taking care of releasing resources on failure and
release.  A recent commit added a bunch of error handling that is unnecessary
in this context.

This patch removes this redundant error handling, as well as using
dmam_alloc_coherent in place of dma_alloc_coherent in order to use this
framework consistenly throughout the driver.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethoc.c