From: Ian Abbott Date: Wed, 15 Aug 2012 14:02:45 +0000 (+0100) Subject: staging: comedi: make attach handler optional X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~925 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c3714d60c0b681179000e3e1b5aae15d99e6218;p=pandora-kernel.git staging: comedi: make attach handler optional Some low-level Comedi drivers no longer support manual configuration of devices with the COMEDI_DEVCONFIG ioctl (used by the comedi_config program). For those drivers, the 'attach_pci' or 'attach_usb' handler will be set in the struct comedi_driver to configure devices automatically (via comedi_pci_auto_config() or comedi_usb_auto_config()). Their 'attach' handlers are redundant but the the comedi core module currently requires it to be set. Make the 'attach' handler optional and issue a warning if something wants to call it. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed