patch-2.1.29 linux/arch/sparc64/prom/bootstr.c
Next file: linux/arch/sparc64/prom/console.c
Previous file: linux/arch/sparc64/prom/Makefile
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Mar 5 17:04:31 1997
- Orig file:
v2.1.28/linux/arch/sparc64/prom/bootstr.c
- Orig date:
Mon Dec 30 01:59:59 1996
diff -u --recursive --new-file v2.1.28/linux/arch/sparc64/prom/bootstr.c linux/arch/sparc64/prom/bootstr.c
@@ -1,11 +1,10 @@
-/* $Id: bootstr.c,v 1.1 1996/12/27 08:49:10 jj Exp $
+/* $Id: bootstr.c,v 1.3 1997/03/04 16:27:06 jj Exp $
* bootstr.c: Boot string/argument acquisition from the PROM.
*
* Copyright(C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright(C) 1996 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/
-#include <linux/config.h>
#include <linux/string.h>
#include <asm/oplib.h>
@@ -18,7 +17,7 @@
{
/* This check saves us from a panic when bootfd patches args. */
if (fetched) return barg_buf;
- prom_getstring(prom_finddevice ("/chosen"), "bootargs", barg_buf, BARG_LEN);
+ prom_getstring(prom_chosen_node, "bootargs", barg_buf, BARG_LEN);
fetched = 1;
return barg_buf;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov