]> git.karo-electronics.de Git - linux-beck.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)
commitc78dbad8c441af4815cd660587470b78552ecfd8
tree4df62528a8705d4ffa7309b76eabc79009969418
parent481300ccf3ef5a79bb7ba59f77c96035134606d9
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