Signed-off-by: Niklas Söderlund niso@kth.se --- hwaccess.c | 3 ++- programmer.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/hwaccess.c b/hwaccess.c index e156647..d6da603 100644 --- a/hwaccess.c +++ b/hwaccess.c @@ -257,10 +257,11 @@ int rmmio_writel(uint32_t val, void *addr) return 0; }
-void rmmio_le_writeb(uint8_t val, void *addr) +int rmmio_le_writeb(uint8_t val, void *addr) { register_undo_mmio_writeb(addr); mmio_le_writeb(val, addr); + return 0; }
void rmmio_le_writew(uint16_t val, void *addr) diff --git a/programmer.h b/programmer.h index b8538a3..32962c0 100644 --- a/programmer.h +++ b/programmer.h @@ -350,7 +350,7 @@ uint32_t mmio_le_readl(void *addr); int rmmio_writeb(uint8_t val, void *addr); int rmmio_writew(uint16_t val, void *addr); int rmmio_writel(uint32_t val, void *addr); -void rmmio_le_writeb(uint8_t val, void *addr); +int rmmio_le_writeb(uint8_t val, void *addr); void rmmio_le_writew(uint16_t val, void *addr); void rmmio_le_writel(uint32_t val, void *addr); #define pci_rmmio_writeb rmmio_le_writeb