Jeff Garzik 00769ec400 [SCSI] megaraid: fix MMIO casts
megaraid's MMIO RD*/WR* macros directly call readl() and writel() with
an 'unsigned long' argument.  This throws a warning, but is otherwise OK
because the 'unsigned long' is really the result of ioremap().  This
setup is also OK because the variable can hold an ioremap cookie /or/ a
PCI I/O port (PIO).

However, to fix the warning thrown when readl() and writel() are passed
an unsigned long cookie, I introduce 'void __iomem *mmio_base', holding
the same value as 'base'.  This will silence the warnings, and also
cause an oops whenever these MMIO-only functions are ever accidentally
passed an I/O address.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2006-12-05 10:25:35 -06:00
..
2006-11-03 12:27:57 -08:00
2006-11-20 09:42:05 -08:00
2006-11-14 09:09:27 -08:00
2006-11-20 13:06:19 -08:00
2006-12-05 10:25:35 -06:00
2006-11-03 12:27:58 -08:00
2006-11-16 14:26:12 -08:00
2006-11-16 14:30:26 -08:00