diff options
| author | H Hartley Sweeten <[email protected]> | 2014-07-14 12:23:55 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-07-16 13:24:43 -0700 |
| commit | a06500b4adf2c8adb1ca1b44c77850d76f8c839b (patch) | |
| tree | 8d197c13e2b8eb2a7b3bb5a14ba7b2c51566f533 /tools/perf/scripts/python/netdev-times.py | |
| parent | daabc8a63154adef43df5eddadb8d0371a5cc06d (diff) | |
staging: comedi: ni_mio_common: tidy up the Analog Input subdevice init
For aesthetics, add some whitespace to the Analog Input subdevice init.
The callers of ni_E_init() do the request_irq() and set dev->irq if the
interrupt is available. Only hook up the async command support if we
have the irq.
Also, remove the '#ifdef PCIDMA' here. The ni_pcimio driver is the only
place PCIDMA is defined. That driver is also the only user of ni_mio_common
that allocates devpriv->mite. Use that test instead to determine if the
subdevice async_dma_dir member needs to be initialized.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions