diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/z2ram.c | 4 | ||||
-rw-r--r-- | drivers/ide/buddha.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/8390/hydra.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/8390/zorro8390.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/a2065.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/ariadne.c | 4 | ||||
-rw-r--r-- | drivers/parport/parport_mfc3.c | 2 | ||||
-rw-r--r-- | drivers/scsi/a2091.c | 2 | ||||
-rw-r--r-- | drivers/scsi/a3000.c | 2 | ||||
-rw-r--r-- | drivers/scsi/a4000t.c | 2 | ||||
-rw-r--r-- | drivers/scsi/gvp11.c | 2 | ||||
-rw-r--r-- | drivers/scsi/zorro7xx.c | 2 | ||||
-rw-r--r-- | drivers/video/amifb.c | 2 | ||||
-rw-r--r-- | drivers/video/cirrusfb.c | 4 |
14 files changed, 19 insertions, 19 deletions
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index 5a95baf4b104..8b2a60cee3a0 100644 --- a/drivers/block/z2ram.c +++ b/drivers/block/z2ram.c | |||
@@ -116,8 +116,8 @@ get_z2ram( void ) | |||
116 | if ( test_bit( i, zorro_unused_z2ram ) ) | 116 | if ( test_bit( i, zorro_unused_z2ram ) ) |
117 | { | 117 | { |
118 | z2_count++; | 118 | z2_count++; |
119 | z2ram_map[ z2ram_size++ ] = | 119 | z2ram_map[z2ram_size++] = (unsigned long)ZTWO_VADDR(Z2RAM_START) + |
120 | ZTWO_VADDR( Z2RAM_START ) + ( i << Z2RAM_CHUNKSHIFT ); | 120 | (i << Z2RAM_CHUNKSHIFT); |
121 | clear_bit( i, zorro_unused_z2ram ); | 121 | clear_bit( i, zorro_unused_z2ram ); |
122 | } | 122 | } |
123 | } | 123 | } |
diff --git a/drivers/ide/buddha.c b/drivers/ide/buddha.c index b1d38590ac01..46eaf58d881b 100644 --- a/drivers/ide/buddha.c +++ b/drivers/ide/buddha.c | |||
@@ -198,7 +198,7 @@ fail_base2: | |||
198 | continue; | 198 | continue; |
199 | } | 199 | } |
200 | } | 200 | } |
201 | buddha_board = ZTWO_VADDR(board); | 201 | buddha_board = (unsigned long)ZTWO_VADDR(board); |
202 | 202 | ||
203 | /* write to BUDDHA_IRQ_MR to enable the board IRQ */ | 203 | /* write to BUDDHA_IRQ_MR to enable the board IRQ */ |
204 | /* X-Surf doesn't have this. IRQs are always on */ | 204 | /* X-Surf doesn't have this. IRQs are always on */ |
diff --git a/drivers/net/ethernet/8390/hydra.c b/drivers/net/ethernet/8390/hydra.c index fb3dd4399cf3..f615fdec0f1b 100644 --- a/drivers/net/ethernet/8390/hydra.c +++ b/drivers/net/ethernet/8390/hydra.c | |||
@@ -113,7 +113,7 @@ static const struct net_device_ops hydra_netdev_ops = { | |||
113 | static int hydra_init(struct zorro_dev *z) | 113 | static int hydra_init(struct zorro_dev *z) |
114 | { | 114 | { |
115 | struct net_device *dev; | 115 | struct net_device *dev; |
116 | unsigned long board = ZTWO_VADDR(z->resource.start); | 116 | unsigned long board = (unsigned long)ZTWO_VADDR(z->resource.start); |
117 | unsigned long ioaddr = board+HYDRA_NIC_BASE; | 117 | unsigned long ioaddr = board+HYDRA_NIC_BASE; |
118 | const char name[] = "NE2000"; | 118 | const char name[] = "NE2000"; |
119 | int start_page, stop_page; | 119 | int start_page, stop_page; |
diff --git a/drivers/net/ethernet/8390/zorro8390.c b/drivers/net/ethernet/8390/zorro8390.c index 85ec4c2d2645..ae2a12b7db62 100644 --- a/drivers/net/ethernet/8390/zorro8390.c +++ b/drivers/net/ethernet/8390/zorro8390.c | |||
@@ -287,7 +287,7 @@ static const struct net_device_ops zorro8390_netdev_ops = { | |||
287 | }; | 287 | }; |
288 | 288 | ||
289 | static int zorro8390_init(struct net_device *dev, unsigned long board, | 289 | static int zorro8390_init(struct net_device *dev, unsigned long board, |
290 | const char *name, unsigned long ioaddr) | 290 | const char *name, void __iomem *ioaddr) |
291 | { | 291 | { |
292 | int i; | 292 | int i; |
293 | int err; | 293 | int err; |
@@ -354,7 +354,7 @@ static int zorro8390_init(struct net_device *dev, unsigned long board, | |||
354 | start_page = NESM_START_PG; | 354 | start_page = NESM_START_PG; |
355 | stop_page = NESM_STOP_PG; | 355 | stop_page = NESM_STOP_PG; |
356 | 356 | ||
357 | dev->base_addr = ioaddr; | 357 | dev->base_addr = (unsigned long)ioaddr; |
358 | dev->irq = IRQ_AMIGA_PORTS; | 358 | dev->irq = IRQ_AMIGA_PORTS; |
359 | 359 | ||
360 | /* Install the Interrupt handler */ | 360 | /* Install the Interrupt handler */ |
diff --git a/drivers/net/ethernet/amd/a2065.c b/drivers/net/ethernet/amd/a2065.c index 0866e7627433..f492a19328e5 100644 --- a/drivers/net/ethernet/amd/a2065.c +++ b/drivers/net/ethernet/amd/a2065.c | |||
@@ -713,8 +713,8 @@ static int a2065_init_one(struct zorro_dev *z, | |||
713 | dev->dev_addr[3] = (z->rom.er_SerialNumber >> 16) & 0xff; | 713 | dev->dev_addr[3] = (z->rom.er_SerialNumber >> 16) & 0xff; |
714 | dev->dev_addr[4] = (z->rom.er_SerialNumber >> 8) & 0xff; | 714 | dev->dev_addr[4] = (z->rom.er_SerialNumber >> 8) & 0xff; |
715 | dev->dev_addr[5] = z->rom.er_SerialNumber & 0xff; | 715 | dev->dev_addr[5] = z->rom.er_SerialNumber & 0xff; |
716 | dev->base_addr = ZTWO_VADDR(base_addr); | 716 | dev->base_addr = (unsigned long)ZTWO_VADDR(base_addr); |
717 | dev->mem_start = ZTWO_VADDR(mem_start); | 717 | dev->mem_start = (unsigned long)ZTWO_VADDR(mem_start); |
718 | dev->mem_end = dev->mem_start + A2065_RAM_SIZE; | 718 | dev->mem_end = dev->mem_start + A2065_RAM_SIZE; |
719 | 719 | ||
720 | priv->ll = (volatile struct lance_regs *)dev->base_addr; | 720 | priv->ll = (volatile struct lance_regs *)dev->base_addr; |
diff --git a/drivers/net/ethernet/amd/ariadne.c b/drivers/net/ethernet/amd/ariadne.c index c178eb4c8166..33822cb69366 100644 --- a/drivers/net/ethernet/amd/ariadne.c +++ b/drivers/net/ethernet/amd/ariadne.c | |||
@@ -747,8 +747,8 @@ static int ariadne_init_one(struct zorro_dev *z, | |||
747 | dev->dev_addr[3] = (z->rom.er_SerialNumber >> 16) & 0xff; | 747 | dev->dev_addr[3] = (z->rom.er_SerialNumber >> 16) & 0xff; |
748 | dev->dev_addr[4] = (z->rom.er_SerialNumber >> 8) & 0xff; | 748 | dev->dev_addr[4] = (z->rom.er_SerialNumber >> 8) & 0xff; |
749 | dev->dev_addr[5] = z->rom.er_SerialNumber & 0xff; | 749 | dev->dev_addr[5] = z->rom.er_SerialNumber & 0xff; |
750 | dev->base_addr = ZTWO_VADDR(base_addr); | 750 | dev->base_addr = (unsigned long)ZTWO_VADDR(base_addr); |
751 | dev->mem_start = ZTWO_VADDR(mem_start); | 751 | dev->mem_start = (unsigned long)ZTWO_VADDR(mem_start); |
752 | dev->mem_end = dev->mem_start + ARIADNE_RAM_SIZE; | 752 | dev->mem_end = dev->mem_start + ARIADNE_RAM_SIZE; |
753 | 753 | ||
754 | dev->netdev_ops = &ariadne_netdev_ops; | 754 | dev->netdev_ops = &ariadne_netdev_ops; |
diff --git a/drivers/parport/parport_mfc3.c b/drivers/parport/parport_mfc3.c index 7578d79b3688..2f650f68af14 100644 --- a/drivers/parport/parport_mfc3.c +++ b/drivers/parport/parport_mfc3.c | |||
@@ -300,7 +300,7 @@ static int __init parport_mfc3_init(void) | |||
300 | if (!request_mem_region(piabase, sizeof(struct pia), "PIA")) | 300 | if (!request_mem_region(piabase, sizeof(struct pia), "PIA")) |
301 | continue; | 301 | continue; |
302 | 302 | ||
303 | pp = (struct pia *)ZTWO_VADDR(piabase); | 303 | pp = ZTWO_VADDR(piabase); |
304 | pp->crb = 0; | 304 | pp->crb = 0; |
305 | pp->pddrb = 255; /* all data pins output */ | 305 | pp->pddrb = 255; /* all data pins output */ |
306 | pp->crb = PIA_DDR|32|8; | 306 | pp->crb = PIA_DDR|32|8; |
diff --git a/drivers/scsi/a2091.c b/drivers/scsi/a2091.c index 30fa38a0ad39..9176bfbd5745 100644 --- a/drivers/scsi/a2091.c +++ b/drivers/scsi/a2091.c | |||
@@ -201,7 +201,7 @@ static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent) | |||
201 | instance->irq = IRQ_AMIGA_PORTS; | 201 | instance->irq = IRQ_AMIGA_PORTS; |
202 | instance->unique_id = z->slotaddr; | 202 | instance->unique_id = z->slotaddr; |
203 | 203 | ||
204 | regs = (struct a2091_scsiregs *)ZTWO_VADDR(z->resource.start); | 204 | regs = ZTWO_VADDR(z->resource.start); |
205 | regs->DAWR = DAWR_A2091; | 205 | regs->DAWR = DAWR_A2091; |
206 | 206 | ||
207 | wdregs.SASR = ®s->SASR; | 207 | wdregs.SASR = ®s->SASR; |
diff --git a/drivers/scsi/a3000.c b/drivers/scsi/a3000.c index c0f4f4290dd6..dd5b64726ddc 100644 --- a/drivers/scsi/a3000.c +++ b/drivers/scsi/a3000.c | |||
@@ -220,7 +220,7 @@ static int __init amiga_a3000_scsi_probe(struct platform_device *pdev) | |||
220 | 220 | ||
221 | instance->irq = IRQ_AMIGA_PORTS; | 221 | instance->irq = IRQ_AMIGA_PORTS; |
222 | 222 | ||
223 | regs = (struct a3000_scsiregs *)ZTWO_VADDR(res->start); | 223 | regs = ZTWO_VADDR(res->start); |
224 | regs->DAWR = DAWR_A3000; | 224 | regs->DAWR = DAWR_A3000; |
225 | 225 | ||
226 | wdregs.SASR = ®s->SASR; | 226 | wdregs.SASR = ®s->SASR; |
diff --git a/drivers/scsi/a4000t.c b/drivers/scsi/a4000t.c index 70c521f79f7c..f5a2ab41543b 100644 --- a/drivers/scsi/a4000t.c +++ b/drivers/scsi/a4000t.c | |||
@@ -56,7 +56,7 @@ static int __init amiga_a4000t_scsi_probe(struct platform_device *pdev) | |||
56 | scsi_addr = res->start + A4000T_SCSI_OFFSET; | 56 | scsi_addr = res->start + A4000T_SCSI_OFFSET; |
57 | 57 | ||
58 | /* Fill in the required pieces of hostdata */ | 58 | /* Fill in the required pieces of hostdata */ |
59 | hostdata->base = (void __iomem *)ZTWO_VADDR(scsi_addr); | 59 | hostdata->base = ZTWO_VADDR(scsi_addr); |
60 | hostdata->clock = 50; | 60 | hostdata->clock = 50; |
61 | hostdata->chip710 = 1; | 61 | hostdata->chip710 = 1; |
62 | hostdata->dmode_extra = DMODE_FC2; | 62 | hostdata->dmode_extra = DMODE_FC2; |
diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c index 2203ac281103..3b6f83ffddc4 100644 --- a/drivers/scsi/gvp11.c +++ b/drivers/scsi/gvp11.c | |||
@@ -310,7 +310,7 @@ static int gvp11_probe(struct zorro_dev *z, const struct zorro_device_id *ent) | |||
310 | if (!request_mem_region(address, 256, "wd33c93")) | 310 | if (!request_mem_region(address, 256, "wd33c93")) |
311 | return -EBUSY; | 311 | return -EBUSY; |
312 | 312 | ||
313 | regs = (struct gvp11_scsiregs *)(ZTWO_VADDR(address)); | 313 | regs = ZTWO_VADDR(address); |
314 | 314 | ||
315 | error = check_wd33c93(regs); | 315 | error = check_wd33c93(regs); |
316 | if (error) | 316 | if (error) |
diff --git a/drivers/scsi/zorro7xx.c b/drivers/scsi/zorro7xx.c index cbf3476c68cd..aff31991aea9 100644 --- a/drivers/scsi/zorro7xx.c +++ b/drivers/scsi/zorro7xx.c | |||
@@ -104,7 +104,7 @@ static int zorro7xx_init_one(struct zorro_dev *z, | |||
104 | if (ioaddr > 0x01000000) | 104 | if (ioaddr > 0x01000000) |
105 | hostdata->base = ioremap(ioaddr, zorro_resource_len(z)); | 105 | hostdata->base = ioremap(ioaddr, zorro_resource_len(z)); |
106 | else | 106 | else |
107 | hostdata->base = (void __iomem *)ZTWO_VADDR(ioaddr); | 107 | hostdata->base = ZTWO_VADDR(ioaddr); |
108 | 108 | ||
109 | hostdata->clock = 50; | 109 | hostdata->clock = 50; |
110 | hostdata->chip710 = 1; | 110 | hostdata->chip710 = 1; |
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c index 0dac36ce09d6..518f790ef88a 100644 --- a/drivers/video/amifb.c +++ b/drivers/video/amifb.c | |||
@@ -3710,7 +3710,7 @@ default_chipset: | |||
3710 | if (!videomemory) { | 3710 | if (!videomemory) { |
3711 | dev_warn(&pdev->dev, | 3711 | dev_warn(&pdev->dev, |
3712 | "Unable to map videomem cached writethrough\n"); | 3712 | "Unable to map videomem cached writethrough\n"); |
3713 | info->screen_base = (char *)ZTWO_VADDR(info->fix.smem_start); | 3713 | info->screen_base = ZTWO_VADDR(info->fix.smem_start); |
3714 | } else | 3714 | } else |
3715 | info->screen_base = (char *)videomemory; | 3715 | info->screen_base = (char *)videomemory; |
3716 | 3716 | ||
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c index 5aab9b9dc210..d992aa5eb3f0 100644 --- a/drivers/video/cirrusfb.c +++ b/drivers/video/cirrusfb.c | |||
@@ -2256,7 +2256,7 @@ static int cirrusfb_zorro_register(struct zorro_dev *z, | |||
2256 | 2256 | ||
2257 | info->fix.mmio_start = regbase; | 2257 | info->fix.mmio_start = regbase; |
2258 | cinfo->regbase = regbase > 16 * MB_ ? ioremap(regbase, 64 * 1024) | 2258 | cinfo->regbase = regbase > 16 * MB_ ? ioremap(regbase, 64 * 1024) |
2259 | : (caddr_t)ZTWO_VADDR(regbase); | 2259 | : ZTWO_VADDR(regbase); |
2260 | if (!cinfo->regbase) { | 2260 | if (!cinfo->regbase) { |
2261 | dev_err(info->device, "Cannot map registers\n"); | 2261 | dev_err(info->device, "Cannot map registers\n"); |
2262 | error = -EIO; | 2262 | error = -EIO; |
@@ -2266,7 +2266,7 @@ static int cirrusfb_zorro_register(struct zorro_dev *z, | |||
2266 | info->fix.smem_start = rambase; | 2266 | info->fix.smem_start = rambase; |
2267 | info->screen_size = ramsize; | 2267 | info->screen_size = ramsize; |
2268 | info->screen_base = rambase > 16 * MB_ ? ioremap(rambase, ramsize) | 2268 | info->screen_base = rambase > 16 * MB_ ? ioremap(rambase, ramsize) |
2269 | : (caddr_t)ZTWO_VADDR(rambase); | 2269 | : ZTWO_VADDR(rambase); |
2270 | if (!info->screen_base) { | 2270 | if (!info->screen_base) { |
2271 | dev_err(info->device, "Cannot map video RAM\n"); | 2271 | dev_err(info->device, "Cannot map video RAM\n"); |
2272 | error = -EIO; | 2272 | error = -EIO; |