2008-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>

* smc/smc.c: Fix warning.
This commit is contained in:
Joel Sherrill
2008-08-05 15:52:05 +00:00
parent aa05837816
commit 3d58766b55
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2008-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* smc/smc.c: Fix warning.
2008-07-29 Chris Johns <chrisj@rtems.org>
* smc/smc.c: Updated to the libblock changes.

View File

@@ -58,7 +58,8 @@ struct SMC_INFO
uint32_t mb;
};
#ifdef CPU_S3C2410 //different regester map
/* Ths S3c2410 uses a different register map */
#ifdef CPU_S3C2410
#define rPBDAT rGPBDAT
#define rPBCON rGPBCON
#define rPDDAT rGPDDAT
@@ -562,7 +563,7 @@ smc_read(rtems_blkdev_request *req)
rtems_blkdev_sg_buffer *sg;
uint32_t remains;
remains = smc_info.bytes_per_page * req->count;
remains = smc_info.bytes_per_page * req->length;
sg = req->bufs;
for (i = 0; (remains > 0) && (i < req->bufnum); i++, sg++)
{