diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/b2c2/skystar2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/b2c2/skystar2.c b/linux/drivers/media/dvb/b2c2/skystar2.c index 79eeefbf0..0566e9f7d 100644 --- a/linux/drivers/media/dvb/b2c2/skystar2.c +++ b/linux/drivers/media/dvb/b2c2/skystar2.c @@ -88,7 +88,7 @@ struct adapter { u32 pid_filter_max; u32 mac_filter_max; u32 irq; - void *io_mem; + void __iomem *io_mem; unsigned long io_port; u8 mac_addr[8]; u32 dw_sram_type; @@ -125,8 +125,8 @@ struct adapter { int (*fe_sleep)(struct dvb_frontend* fe); }; -#define write_reg_dw(adapter,reg,value) writel(value, (void*) (adapter->io_mem + reg)) -#define read_reg_dw(adapter,reg) readl((void*) (adapter->io_mem + reg)) +#define write_reg_dw(adapter,reg,value) writel(value, adapter->io_mem + reg) +#define read_reg_dw(adapter,reg) readl(adapter->io_mem + reg) static void write_reg_bitfield(struct adapter *adapter, u32 reg, u32 zeromask, u32 orvalue) { @@ -1592,7 +1592,7 @@ static void interrupt_service_dma1(struct adapter *adapter) u8 gb_tmp_buffer[188]; u8 *pb_dma_buf_cur_pos; - n_cur_dma_counter = readl((void*) (adapter->io_mem + 0x008)) - adapter->dmaq1.bus_addr; + n_cur_dma_counter = readl(adapter->io_mem + 0x008) - adapter->dmaq1.bus_addr; n_cur_dma_counter = (n_cur_dma_counter / dw_default_packet_size) * dw_default_packet_size; if ((n_cur_dma_counter < 0) || (n_cur_dma_counter > adapter->dmaq1.buffer_size)) { |