]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Use devm_regulator_get_optional()
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 23 May 2014 19:57:18 +0000 (12:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 May 2014 18:03:21 +0000 (14:03 -0400)
commit42abc1d7c5e6235943c3d6597077297955c8e877
tree4df62528a8705d4ffa7309b76eabc79009969418
parentd33cf194624cdba91bf5e4a5e2aa78e841dc3827
net: ks8851: Use devm_regulator_get_optional()

This simplifies error paths and removes the need to
regulator_put().

Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c