]> err.no Git - linux-2.6/commit
[POWERPC] Add rtas_service_present() helper
authorNathan Lynch <ntl@pobox.com>
Thu, 7 Dec 2006 00:50:45 +0000 (18:50 -0600)
committerPaul Mackerras <paulus@samba.org>
Fri, 8 Dec 2006 06:10:22 +0000 (17:10 +1100)
commitf2d6d2d8bb4e9bb4aef225c149e42cac3ac3d4d0
tree7efba50f075c5b751c7f28379c2bbc53f48555e1
parent9d9d868ecf93b35c3c5b0ea3d639dc85e423eb02
[POWERPC] Add rtas_service_present() helper

To test for the existence of an RTAS function, we typically do:

   foo_token = rtas_token("foo");
   if (foo_token == RTAS_UNKNOWN_SERVICE)
      return;

Add a rtas_service_present method, which provides a more conventional
boolean interface for testing the existence of an RTAS method.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/rtas.c
include/asm-powerpc/rtas.h