From: Sergei Shtylyov Date: Fri, 17 Oct 2008 16:09:17 +0000 (+0200) Subject: sgiioc4: kill duplicate ioremap() X-Git-Tag: v2.6.28-rc1~83^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=107111d450541df8c2a8d3af1d538cc7cd85e81b;p=pandora-kernel.git sgiioc4: kill duplicate ioremap() By the time ide_dma_sgiioc4() gets called, sgiioc4_ide_setup_pci_device() will have called ioremap() on the whole BAR0 region, so calling ioremap() on the DMA registers means wasting a page. Replace this call by a mere address calculation, based on the fact that IRQ registers (pointed to by 'hwif->io_ports.irq_addr') are situated at offset 0 from BAR0. Signed-off-by: Sergei Shtylyov Cc: jeremy@sgi.com Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed