From: Ian Abbott Date: Mon, 15 Oct 2012 12:07:32 +0000 (+0100) Subject: staging: comedi: always set hw_dev during auto-config X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26cbd46529c07b50e92861f06497a5f327c48e69;p=pandora-kernel.git staging: comedi: always set hw_dev during auto-config Auto-configuration (auto-attachment) of USB and PCI comedi devices all goes through `comedi_auto_config_helper()`. That is a good place to set the comedi device's `hw_dev` pointer to the hardware `struct device` via a call to `comedi_set_hw_dev(comedi_device, hardware_device)` as it may obviate the need for the low-level comedi driver to make this call. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed