From: Bartlomiej Zolnierkiewicz Date: Sat, 13 Oct 2007 15:47:53 +0000 (+0200) Subject: sc1200: fix ->dma_base equal zero handling X-Git-Tag: v2.6.24-rc1~1363^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ae4d8c3829fe3d7be9b1e3ed79a37814752d61;p=pandora-kernel.git sc1200: fix ->dma_base equal zero handling Set hwif->atapi_dma/{ultra,mwdma}_mask and drive->autodma after checking that ->dma_base exists. If ->dma_base is not set (== PCI BAR4 cannot be reserved) then DMA hooks shouldn't be initialized or bad things will happen. OTOH hwif->set_{pio,dma}_mode hooks should be set even if hwif->dma_base == 0. Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed