[PATCH 52/52] libbsp/powerpc/shared/tod/todcfg.c: Fix method prototype to eliminate warning

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 8 19:16:43 UTC 2014


---
 c/src/lib/libbsp/powerpc/shared/tod/todcfg.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/tod/todcfg.c b/c/src/lib/libbsp/powerpc/shared/tod/todcfg.c
index 49e21b8..2859ac8 100644
--- a/c/src/lib/libbsp/powerpc/shared/tod/todcfg.c
+++ b/c/src/lib/libbsp/powerpc/shared/tod/todcfg.c
@@ -12,8 +12,8 @@
 
 /* Forward function declaration */
 #if !defined(mvme2100)
-uint32_t mvmertc_get_register( uint32_t, uint8_t );
-void mvmertc_set_register( uint32_t, uint8_t, uint32_t );
+uint32_t mvmertc_get_register( uintptr_t, uint8_t );
+void mvmertc_set_register( uintptr_t, uint8_t, uint32_t );
 #endif
 
 /* The following table configures the RTC drivers used in this BSP */
@@ -49,17 +49,17 @@ rtems_device_minor_number RTC_Minor;
 #if !defined(mvme2100)
 #include <rtems/bspIo.h>
 void mvmertc_set_register(
-  uint32_t base,
-  uint8_t  reg,
-  uint32_t value
+  uintptr_t base,
+  uint8_t   reg,
+  uint32_t  value
 )
 {
   printk( "RTC SUPPORT NOT IMPLEMENTED ON THIS BOARD\n");
 }
 
 uint32_t mvmertc_get_register(
-  uint32_t base,
-  uint8_t  reg
+  uintptr_t base,
+  uint8_t   reg
 )
 {
   printk( "RTC SUPPORT NOT IMPLEMENTED ON THIS BOARD\n");
-- 
1.9.3




More information about the devel mailing list