From: H Hartley Sweeten Date: Fri, 17 Aug 2012 02:50:01 +0000 (-0700) Subject: staging: comedi: cb_pcimdda: cleanup the 8255 subdevice init X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~879 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce774eab13606610df53301897e9c003476d7c6c;p=pandora-kernel.git staging: comedi: cb_pcimdda: cleanup the 8255 subdevice init The dio_registers variable in the private data is only used to pass the base address to the 8255 subdevice. Remove the variable from the private data and pass the value directly to the subdev_8255_init() function. Make sure to check the return from subdev_8255_init(). That function can fail. For aesthetic reasons, rename the local variable 'err' to 'ret'. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed