Hello.

Nathan Fontenot wrote:
Allow the drc index passed to the /proc/ppc64/ofdt file to be specified
in formats other than decimal. This allows us to easily specify drc indexes
in hex that would otherwise appears as negative integers.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]>
---

Index: linux-2.6.git/arch/powerpc/platforms/pseries/reconfig.c
===================================================================
--- linux-2.6.git.orig/arch/powerpc/platforms/pseries/reconfig.c 2008-06-03 16:29:04.000000000 -0500 +++ linux-2.6.git/arch/powerpc/platforms/pseries/reconfig.c 2008-06-19 22:03:12.000000000 -0500
@@ -365,7 +365,7 @@
     *buf = '\0';
     buf++;

-    handle = simple_strtoul(handle_str, NULL, 10);
+    handle = simple_strtoul(handle_str, NULL, 0);
  I guess checkpatch.pl told you to consider switching to 
strict_strtol()? :-)
WBR, Sergei


_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to