]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: cleanup: regulator_get() error handling
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 24 Feb 2013 10:48:46 +0000 (10:48 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 24 Feb 2013 10:48:46 +0000 (10:48 +0000)
commitb719b260532e4428090b0cc14342d93dc496ea34
tree530a76a043da86ba9c3f0d1f219634c0dec5a4e0
parentdf7b332073b22b782ba9c68a6945812749bf97c4
ARM: cleanup: regulator_get() error handling

regulator_get() does not return NULL as an error value.  Even when it
does return an error, the code as written falls out the error path
while returning zero (indicating no failure.)  Fix this, and use the
more correct IS_ERR() macro to check for errors.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-tegra/board-harmony-pcie.c