From: Jonathan Cameron Date: Wed, 14 Sep 2011 12:01:25 +0000 (+0100) Subject: staging:iio: move id and device name setting to iio_device_allocate. X-Git-Tag: v3.2-rc1~169^2^2~499 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e39f9e80ac24367e375c8ea110dfaec837b020;p=pandora-kernel.git staging:iio: move id and device name setting to iio_device_allocate. The recent reorganization of the sysfs attribute registration had the side effect of moving iio_device_register after registration of triggers etc. The side effect of this is that the id hadn't been allocated by the time of trigger registration. Thus all triggers based on device got the name -dev0 instead of -devN where N is the iio device id. This should also fix the lack of device name for some error messages that we have been seeing (and I'd been meaning to track down) as that has now moved earlier as well. Reported-by: Manuel Stahl Signed-off-by: Jonathan Cameron Tested-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed