RE: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 3:27 AM, Ian Abbott wrote: > On 2012-07-19 11:10, Ian Abbott wrote: >> On 2012-07-19 02:37, H Hartley Sweeten wrote: >>> 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

RE: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 3:11 AM, Ian Abbott wrote: > On 2012-07-19 02:37, H Hartley Sweeten wrote: >> 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 >>

Re: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread Ian Abbott
On 2012-07-19 11:27, Ian Abbott wrote: On 2012-07-19 11:10, Ian Abbott wrote: On 2012-07-19 02:37, H Hartley Sweeten wrote: 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

Re: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread Ian Abbott
On 2012-07-19 11:10, Ian Abbott wrote: On 2012-07-19 02:37, H Hartley Sweeten wrote: 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.

Re: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread Ian Abbott
On 2012-07-19 02:37, H Hartley Sweeten wrote: 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

Re: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread Ian Abbott
On 2012-07-19 02:37, H Hartley Sweeten wrote: 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

Re: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread Ian Abbott
On 2012-07-19 11:10, Ian Abbott wrote: On 2012-07-19 02:37, H Hartley Sweeten wrote: 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.

Re: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread Ian Abbott
On 2012-07-19 11:27, Ian Abbott wrote: On 2012-07-19 11:10, Ian Abbott wrote: On 2012-07-19 02:37, H Hartley Sweeten wrote: 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

RE: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 3:11 AM, Ian Abbott wrote: On 2012-07-19 02:37, H Hartley Sweeten wrote: 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

RE: [PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 3:27 AM, Ian Abbott wrote: On 2012-07-19 11:10, Ian Abbott wrote: On 2012-07-19 02:37, H Hartley Sweeten wrote: 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

[PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
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

[PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
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