diff options
| author | H Hartley Sweeten <[email protected]> | 2012-07-18 18:39:24 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-07-19 16:32:53 -0700 |
| commit | b6d446b5de6139d2a5764c7568012ffa14e2aa6e (patch) | |
| tree | 3fa632fe9ed155a1af63af7acd04d8fec877d208 /tools/perf/scripts/python | |
| parent | ed7fd225efef11fb8c85ec650288702af69bbe83 (diff) | |
staging: comedi: amplc_pc236: store the pci_dev in the comedi_device
Use the hw_dev pointer in the comedi_device struct to hold the
pci_dev instead of carrying it in the private data.
Since the pci_dev is no longer held in the provate data, we can
also cleanup the detach a bit. Remove the IS_ENABLED() tests in
the detach. If the pci_dev is non NULL it's a PCI device otherwise
it's an ISA device. Using IS_ENABLED() to omit the code paths
makes the code a bit confusing and doesn't save much.
Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions