From: H Hartley Sweeten Date: Mon, 4 Feb 2013 23:42:56 +0000 (-0700) Subject: staging: comedi: quatech_daqp_cs: store private data in the comedi_device X-Git-Tag: v3.9-rc1~127^2~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c12717423e1c61682fada53193813248095cba44;p=pandora-kernel.git staging: comedi: quatech_daqp_cs: store private data in the comedi_device All the comedi_subdevices in this driver use the same 'local' private data. Instead of storing the pointer to the private data in each subdevice, just store it in the comedi_device. Also, instead of passing the private data pointer to pcmcia_request_irq() in link->priv, pass the comedi_device pointer. This allows removing the comedi_device and comedi_subdevice pointers from the private data. We can get them as needed from the void * in the interrupt function. Fix the pcmcia suspend/resume functions so they use the comedi_device pointer stored in link->priv to then get the private data pointer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed