From: H Hartley Sweeten Date: Fri, 30 Aug 2013 17:47:03 +0000 (-0700) Subject: staging: comedi: initialize subdevice s->io_bits in postconfig X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~780 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09567cb4373e962a3079bb06352e1e5452d9a340;p=pandora-kernel.git staging: comedi: initialize subdevice s->io_bits in postconfig The subdevice 'io_bits' is a bit mask of the i/o configuration for digital subdevices. '0' values indicate that a channel is configured as an input and '1' values that the channel is an output. Since the subdevice data is kzalloc()'d, all channels default as inputs. Modify __comedi_device_postconfig() so that 'io_bits' is correctly initialized for Digital Output subdevices. Remove all the unnecessary initializations of 's->io_bits' from the drivers. Also, remove the unnecessary initialization of the 's->state'. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed