]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/wdrtas: Update wdrtas_get_interval to use rtas_data_buf
authorMark Nelson <markn@au1.ibm.com>
Mon, 23 Mar 2009 20:30:41 +0000 (20:30 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 7 Apr 2009 05:07:43 +0000 (15:07 +1000)
commit34f4a55265ba4c8ff2d7f24bdfc654b8d0f3d8c2
treecbed24a70a521a32965b18c589035e819003c7a4
parenta6e07ccf5a3501207845733307274d23a0bf06d3
powerpc/wdrtas: Update wdrtas_get_interval to use rtas_data_buf

The buffer passed to the ibm,get-system-parameter RTAS call must be
in the RMA.  To ensure we pass an address in the RMA use rtas_data_buf
for the actual RTAS call and then copy the result to value.  We can't
just make it static because this can be compiled in as a module.

Also add the WDRTAS_SP_SPI_LEN so we don't litter '4' throughout the
function.

Signed-off-by: Mark Nelson <markn@au1.ibm.com>
Tested-by: Adrian Reber <adrian@lisas.de>
Acked-by: Utz Bacher <utz.bacher@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/watchdog/wdrtas.c