]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
ioat: convert ioat_probe to pcim/devm
authorDan Williams <dan.j.williams@intel.com>
Wed, 9 Sep 2009 00:29:44 +0000 (17:29 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Sep 2009 00:29:44 +0000 (17:29 -0700)
commite6c0b69a43150c1a37cf342ce5faedf12583bf79
tree955456982fea62d6557ad5992f19ee3e73e64bc2
parent1f27adc2f050836c12deb4d99afe507636537a0b
ioat: convert ioat_probe to pcim/devm

The driver currently duplicates much of what these routines offer, so
just use the common code.  For example ->irq_mode tracks what interrupt
mode was initialized, which duplicates the ->msix_enabled and
->msi_enabled handling in pcim_release.

This also adds a check to the return value of dma_async_device_register,
which can fail.

Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ioat/dma.c
drivers/dma/ioat/dma.h
drivers/dma/ioat/hw.h
drivers/dma/ioat/pci.c