diff options
Diffstat (limited to 'drivers/char/synclinkmp.c')
-rw-r--r-- | drivers/char/synclinkmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/synclinkmp.c b/drivers/char/synclinkmp.c index ee5a40be9f99..a9467e7d3747 100644 --- a/drivers/char/synclinkmp.c +++ b/drivers/char/synclinkmp.c | |||
@@ -5104,7 +5104,7 @@ void tx_load_dma_buffer(SLMP_INFO *info, const char *buf, unsigned int count) | |||
5104 | int register_test(SLMP_INFO *info) | 5104 | int register_test(SLMP_INFO *info) |
5105 | { | 5105 | { |
5106 | static unsigned char testval[] = {0x00, 0xff, 0xaa, 0x55, 0x69, 0x96}; | 5106 | static unsigned char testval[] = {0x00, 0xff, 0xaa, 0x55, 0x69, 0x96}; |
5107 | static unsigned int count = sizeof(testval)/sizeof(unsigned char); | 5107 | static unsigned int count = ARRAY_SIZE(testval); |
5108 | unsigned int i; | 5108 | unsigned int i; |
5109 | int rc = TRUE; | 5109 | int rc = TRUE; |
5110 | unsigned long flags; | 5110 | unsigned long flags; |
@@ -5422,7 +5422,7 @@ int memory_test(SLMP_INFO *info) | |||
5422 | { | 5422 | { |
5423 | static unsigned long testval[] = { 0x0, 0x55555555, 0xaaaaaaaa, | 5423 | static unsigned long testval[] = { 0x0, 0x55555555, 0xaaaaaaaa, |
5424 | 0x66666666, 0x99999999, 0xffffffff, 0x12345678 }; | 5424 | 0x66666666, 0x99999999, 0xffffffff, 0x12345678 }; |
5425 | unsigned long count = sizeof(testval)/sizeof(unsigned long); | 5425 | unsigned long count = ARRAY_SIZE(testval); |
5426 | unsigned long i; | 5426 | unsigned long i; |
5427 | unsigned long limit = SCA_MEM_SIZE/sizeof(unsigned long); | 5427 | unsigned long limit = SCA_MEM_SIZE/sizeof(unsigned long); |
5428 | unsigned long * addr = (unsigned long *)info->memory_base; | 5428 | unsigned long * addr = (unsigned long *)info->memory_base; |