From: H Hartley Sweeten Date: Mon, 29 Jul 2013 21:04:13 +0000 (-0700) Subject: staging: comedi: das16: tidy up 8255 digital i/o subdevice X-Git-Tag: v3.12-rc1~183^2~427 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21b8f248976f7270595f27e878f0026baf99e6e3;p=pandora-kernel.git staging: comedi: das16: tidy up 8255 digital i/o subdevice The 8255 digital i/o subdevice is only available on some of the boards supported by this driver. Currently the 'i8255_offset' member of the boardinfo is used to indicate that it is available. To clarify this support, add a 'has_8255' bit-field flag to the boardinfo. We can then use this flag to conditionally allocate the space for the subdevice only when it is needed. Also, make sure to check that subdev_8255_init() is successful and propagate any errors. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed