From: H Hartley Sweeten Date: Fri, 22 Mar 2013 16:44:38 +0000 (-0700) Subject: staging: comedi: ni_labpc: fix 8255 dio subdevice init X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~467 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=370c8e1f76a316ba698d3ef525dd95d83db7b097;p=pandora-kernel.git staging: comedi: ni_labpc: fix 8255 dio subdevice init The subdev_8255_init() function can fail. Check for failure and return the errno. Consolidate the mmio/ioport calls to subdev_8255_init(). The callback function can be added with a simple ? : test and the cast of the iobase is not necessary. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed