]> git.baikalelectronics.ru Git - kernel.git/commit
cs5520: fix ->dma_base equal zero handling
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 13 Oct 2007 15:47:52 +0000 (17:47 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 13 Oct 2007 15:47:52 +0000 (17:47 +0200)
commite5b80dc01522cdf3138c381164c95c010695b842
treeb4db3281be713728a8e35be9c492c6d24803bac8
parent558857bc520791ce247d31080a6110d241c5a444
cs5520: fix ->dma_base equal zero handling

Set hwif->ide_dma_{check,on} and hwif->autodma to 1 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.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/cs5520.c