]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: db8500-prcmu: Return early if the TCPM cannot be located
authorLee Jones <lee.jones@linaro.org>
Thu, 4 Apr 2013 10:39:00 +0000 (11:39 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Apr 2013 10:02:42 +0000 (12:02 +0200)
commit741cdecfc5255085d348ccaad1d1befbd6ae9222
tree561ddde05193b8bfa08a0f815de0bb73631f26c1
parent5fb1c2dd8f9e9f3fd4ecbaefc75b83ab0ec40cfa
mfd: db8500-prcmu: Return early if the TCPM cannot be located

Currently we check to see if we obtained the Tightly Coupled Program
Memory (TCPM) base and only execute the code within the check if we
have it. It's more traditional to return early if we don't have it.
This way we can flatten most of the function's code down to a single
tab spacing.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/db8500-prcmu.c