diff options
Diffstat (limited to 'drivers/sbus/char/jsflash.c')
| -rw-r--r-- | drivers/sbus/char/jsflash.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/sbus/char/jsflash.c b/drivers/sbus/char/jsflash.c index a624f5af432..a40ee1e3748 100644 --- a/drivers/sbus/char/jsflash.c +++ b/drivers/sbus/char/jsflash.c @@ -13,7 +13,7 @@   * TODO: Erase/program both banks of a 8MB SIMM.   *   * It is anticipated that programming an OS Flash will be a routine - * procedure. In the same time it is exeedingly dangerous because + * procedure. In the same time it is exceedingly dangerous because   * a user can program its OBP flash with OS image and effectively   * kill the machine.   * @@ -207,7 +207,7 @@ static void jsfd_do_request(struct request_queue *q)  			goto end;  		} -		jsfd_read(req->buffer, jdp->dbase + offset, len); +		jsfd_read(bio_data(req->bio), jdp->dbase + offset, len);  		err = 0;  	end:  		if (!__blk_end_request_cur(req, err)) @@ -467,7 +467,7 @@ static int jsflash_init(void)  	node = prom_getchild(prom_root_node);  	node = prom_searchsiblings(node, "flash-memory"); -	if (node != 0 && node != -1) { +	if (node != 0 && (s32)node != -1) {  		if (prom_getproperty(node, "reg",  		    (char *)®0, sizeof(reg0)) == -1) {  			printk("jsflash: no \"reg\" property\n"); @@ -507,7 +507,6 @@ static int jsflash_init(void)  	}  	/* Let us be really paranoid for modifications to probing code. */ -	/* extern enum sparc_cpu sparc_cpu_model; */ /* in <asm/system.h> */  	if (sparc_cpu_model != sun4m) {  		/* We must be on sun4m because we use MMU Bypass ASI. */  		return -ENXIO;  | 
