From: Adrian M. <zx8...@us...> - 2002-08-24 10:05:44
|
Update of /cvsroot/linuxdc/linux-sh-dc/drivers/mtd/maps In directory usw-pr-cvs1:/tmp/cvs-serv3694/drivers/mtd/maps Modified Files: vmu-flash.c Log Message: Updated vmu-flash.c and made licencing clear for microphone.c Index: vmu-flash.c =================================================================== RCS file: /cvsroot/linuxdc/linux-sh-dc/drivers/mtd/maps/vmu-flash.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- vmu-flash.c 22 Aug 2002 22:15:22 -0000 1.2 +++ vmu-flash.c 24 Aug 2002 10:05:41 -0000 1.3 @@ -199,7 +199,7 @@ { block_t *block; *retval = 0; - u_char *buf = kmalloc(GFP_KERNEL, 512); + u_char *buf = kmalloc(512, GFP_KERNEL); /* Find the block */ block = __ofs_to_block(ofs); @@ -240,7 +240,7 @@ static void vmu_flash_write8(__u8 d, unsigned long ofs) { block_t *block; - u_char *buf = kmalloc(GFP_KERNEL, 512); + u_char *buf = kmalloc(512, GFP_KERNEL); /* Find the block */ block = __ofs_to_block(ofs); @@ -316,7 +316,7 @@ int vmu_flash_erase(struct mtd_info *mtd, struct erase_info *erase) { - int *z = (int *)kmalloc(GFP_KERNEL, 4); + int *z = (int *)kmalloc(4, GFP_KERNEL); vmu_flash_write(mtd, erase->addr, erase->len, z, "\0"); kfree(z); return 0; @@ -377,7 +377,7 @@ struct mapleq *mq = &data->mq; if (mq->recvbuf[0] == 8) { - block_buffer = kmalloc(GFP_KERNEL, 512); + block_buffer = kmalloc(512, GFP_KERNEL); /* How big a transfer is it? */ memcpy(mq->recvbuf + 12, block_buffer, (__u8)(mq->recvbuf[3]) * 2 - 8); @@ -398,7 +398,7 @@ /* Look for the flash */ if (!vmu_flash_mtd) { /* Populate a mtd_info */ - vmu_flash_mtd = kmalloc(GFP_KERNEL, 1000); + vmu_flash_mtd = kmalloc(1000, GFP_KERNEL); vmu_flash_mtd->name = "Dreamcast VMU Flash"; /* This is 'other' */ |