diff options
| author | H Hartley Sweeten <[email protected]> | 2013-12-09 15:30:51 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-12-17 10:02:12 -0800 |
| commit | 6e6bed0b523717aa93f08ce8fe679a5c48c81cfd (patch) | |
| tree | ab8f748ec8ef072a1152d1ff967eae61b5f358dd /tools/perf/scripts/python/bin | |
| parent | 5d4997bbfa3bb7ed4786bd96bfcc756b02f9551a (diff) | |
staging: comedi: pcmmio: tidy up the irq request
The for () loop that does the request_irq() in this driver is a bit of
an overkill. The code appears to have been copied from the pcmuio driver
which supports boards with 1 or 2 ASIC devices. The board supported by
this driver only has 1 ASIC.
Simplify the code and store the irq number in the comedi_device. This
allows the core to automatically do the free_irq() when the driver is
detached.
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/bin')
0 files changed, 0 insertions, 0 deletions