]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: VPE: Exit vpe_release() early if vpe_run() isn't defined
authorBjorn Helgaas <bhelgaas@google.com>
Sun, 12 Jul 2015 23:11:12 +0000 (18:11 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Aug 2015 13:23:39 +0000 (15:23 +0200)
commit9c7502284f366edf44f8a2b57cacf07e42043f78
tree3204b039f7ff57ce9ee6cc4a41cca8618bbed070
parentb27dd27ea7329fcfaf2e521a284f8c6676b205ea
MIPS: VPE: Exit vpe_release() early if vpe_run() isn't defined

vpe_run() is a weak symbol.  If there's no definition of it, its value is
zero.

If vpe_run is zero, return failure early.  We're going to fail anyway, so
there's no point in getting a VPE and attempting to load it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/10683/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vpe.c