summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/openprom.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-11-30 14:33:29 -0800
committerDavid S. Miller <davem@davemloft.net>2010-11-30 14:33:29 -0800
commite62cac1fd035b4cde707285008499dbe71955a86 (patch)
tree214447e9efd4dc49f5bb707c7c1c0073a3df9803 /arch/sparc/include/asm/openprom.h
parent91921fef7c658b12de53376b312d071d757f7770 (diff)
downloadtalos-obmc-linux-e62cac1fd035b4cde707285008499dbe71955a86.tar.gz
talos-obmc-linux-e62cac1fd035b4cde707285008499dbe71955a86.zip
sparc: Pass buffer pointer all the way down to prom_{get,put}char().
This gets us closer to being able to eliminate the use of dynamic and stack based buffers, so that we can adhere to the "no buffer addresses above 4GB" rule for PROM calls. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/openprom.h')
-rw-r--r--arch/sparc/include/asm/openprom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/openprom.h b/arch/sparc/include/asm/openprom.h
index 81cd43432dc0..47eaafad15ce 100644
--- a/arch/sparc/include/asm/openprom.h
+++ b/arch/sparc/include/asm/openprom.h
@@ -39,7 +39,7 @@ struct linux_dev_v2_funcs {
int (*v2_dev_open)(char *devpath);
void (*v2_dev_close)(int d);
int (*v2_dev_read)(int d, char *buf, int nbytes);
- int (*v2_dev_write)(int d, char *buf, int nbytes);
+ int (*v2_dev_write)(int d, const char *buf, int nbytes);
int (*v2_dev_seek)(int d, int hi, int lo);
/* Never issued (multistage load support) */
OpenPOWER on IntegriCloud